ScopeParser scopeParser = new ScopeParser(tokenizer, file);
FunctionParser functionParser = new FunctionParser(false, tokenizer, file);
functionParser.setScopeParser(scopeParser);
TypeParser typeParser = new TypeParser(false, tokenizer, file);
typeParser.setScopeParser(scopeParser);
VariableParser variableParser = new VariableParser(tokenizer, file, functionParser);
variableParser.setScopeParser(scopeParser);
// InterfaceParser interfaceParser = new InterfaceParser(tokenizer);
lexer.scan(fileText);
if (!packagePeer) {
codeContext.page = new TokenizedPage(tokenizer.getTokenizedStream());
codeContext.pkg = packageParser.getPckg();
codeContext.imports.addAll(importParser.getImports());
}
codeContext.methods.addAll(functionParser.getMethods());
codeContext.functions.addAll(functionParser.getFunctions());
codeContext.types.addAll(typeParser.getTypes());
codeContext.vars.addAll(variableParser.getVars());
if (useExternalContext) {
for (Import imp : codeContext.imports) {