public static void ParseReader(TextReader reader, string fileName, Boo.Lang.Compiler.CompilerContext context, CompileUnit targetCompileUnit)
{
UnityScriptLexer lexer = UnityScriptLexerFor(reader, fileName, TabSizeFromContext(context));
if (lexer == null)
{
targetCompileUnit.get_Modules().Add(CodeFactory.NewModule(fileName));
}
else
{
UnityScriptParser parser;
UnityScriptParser parser1 = parser = new UnityScriptParser(lexer);
Boo.Lang.Compiler.CompilerContext context1 = parser.CompilerContext = context;
UnityScriptParser parser2 = parser;
parser2.setFilename(fileName);
try
{
parser2.start(targetCompileUnit);
}
catch (TokenStreamRecognitionException exception)
{
parser2.reportError(exception.recog);
}
}
}