public IScope popScope( IScope scope ) { ISymbolTable targetSymTable = getTargetSymbolTable(); return targetSymTable.popScope( scope ); }
public IScope popScope() { ISymbolTable targetSymTable = getTargetSymbolTable(); return targetSymTable.popScope(); }
public IScope popScope() { ISymbolTable targetSymTable = getTargetSymbolTable(); return targetSymTable.popScope(); }
public IScope popScope( IScope scope ) { ISymbolTable targetSymTable = getTargetSymbolTable(); return targetSymTable.popScope( scope ); }
/** * */ public synchronized void popScope() { getThreadLocalSymbolTable().popScope(); }
/** * */ public synchronized void popScope() { getThreadLocalSymbolTable().popScope(); }
private void popScopeIfNeeded( boolean bPop, IGosuClass gsClass ) { if( bPop ) { getSymbolTable().popScope(); CompiledGosuClassSymbolTable.instance().popCompileTimeSymbolTable( gsClass ); } }
private void popScopeIfNeeded( boolean bPop, IGosuClass gsClass ) { if( bPop ) { getSymbolTable().popScope(); CompiledGosuClassSymbolTable.instance().popCompileTimeSymbolTable( gsClass ); } }
private void popClassSymbols() { getSymbolTable().popScope(); getOwner().popParsingStaticMember(); getOwner().newDfsDeclInSetByName(); }
private void popClassSymbols() { getSymbolTable().popScope(); getOwner().popParsingStaticMember(); getOwner().newDfsDeclInSetByName(); }
boolean parseDefaultClause( SwitchStatement switchStmt, List<CaseClause> cases ) { if( !match( null, Keyword.KW_default ) ) { return false; } if( cases.size() > 0 ) { warnIfCaseNotTerminated( cases.get( cases.size()-1 ).getStatements() ); } verify( switchStmt, match( null, ":", SourceCodeTokenizer.TT_OPERATOR ), Res.MSG_EXPECTING_CASE_COLON ); verify( switchStmt, switchStmt.getDefaultStatements() == null, Res.MSG_MULTIPLE_DEFAULT_CLAUSES_NOT_PERMITTED ); _symTable.pushScope(); try { List<Statement> defaultStatements = new ArrayList<>(); parseStatementsAndDetectUnreachable( defaultStatements ); switchStmt.setDefaultStatements( defaultStatements ); } finally { _symTable.popScope(); } return true; }
public void addExecuteEntryPoint( ISymbolTable symTable, GosuClassParser parser ) { symTable.pushScope(); ProgramExecuteFunctionSymbol executeFs; ProgramExecuteFunctionSymbol executeWithArgsFs; try { executeFs = new ProgramExecuteFunctionSymbol( getOrCreateTypeReference(), symTable ); executeWithArgsFs = new ProgramExecuteFunctionSymbol( getOrCreateTypeReference(), symTable, true ); } finally { symTable.popScope(); } parser.processFunctionSymbol( executeFs, this ); parser.processFunctionSymbol( executeWithArgsFs, this ); }
_symTable.popScope();
private void parseStatementBlock( boolean bMatchClosingBrace ) { _symTable.pushScope(); if( !bMatchClosingBrace ) { decStatementDepth(); } try { ArrayList<Statement> statements = new ArrayList<Statement>(); parseStatementsAndDetectUnreachable( statements ); StatementList stmtList = new StatementList( _symTable ); verify( stmtList, !bMatchClosingBrace || match( null, '}' ), Res.MSG_EXPECTING_RIGHTBRACE_STMTBLOCK ); stmtList.setStatements( statements ); pushStatement( isDontOptimizeStatementLists() ? stmtList : stmtList.getSelfOrSingleStatement() ); } finally { if( !bMatchClosingBrace ) { incStatementDepth(); } _symTable.popScope(); } }
public TypeLiteral parseTypeLiteral( IScriptPartId partId ) throws ParseResultsException { pushScriptPart( partId ); try { _tokenizer.nextToken(); _symTable.pushScope(); try { parseTypeLiteral(); } finally { _symTable.popScope(); } Expression expression = popExpression(); verify( expression, match( null, SourceCodeTokenizer.TT_EOF ), Res.MSG_END_OF_EXPRESSION ); _bParsed = true; return (TypeLiteral)expression; } finally { popScriptPart( partId ); } }
public TypeLiteral parseTypeLiteral( IScriptPartId partId ) throws ParseResultsException { pushScriptPart( partId ); try { _tokenizer.nextToken(); _symTable.pushScope(); try { parseTypeLiteral(); } finally { _symTable.popScope(); } Expression expression = popExpression(); verify( expression, match( null, SourceCodeTokenizer.TT_EOF ), Res.MSG_END_OF_EXPRESSION ); _bParsed = true; return (TypeLiteral)expression; } finally { popScriptPart( partId ); } }
symTable.popScope(); for (IParseTree parseTree : parser.getLocations()) { parseTree.setLength(Math.min(parseTree.getLength(), _scriptStr.length() - parseTree.getOffset()));
symTable.popScope(); for (IParseTree parseTree : parser.getLocations()) { parseTree.setLength(Math.min(parseTree.getLength(), _scriptStr.length() - parseTree.getOffset()));
_symTable.popScope();
symTable.popScope();