public IScope pushScope( IScope scope ) { ISymbolTable targetSymTable = getTargetSymbolTable(); return targetSymTable.pushScope( scope ); }
public IScope pushScope() { ISymbolTable targetSymTable = getTargetSymbolTable(); return targetSymTable.pushScope(); }
public IScope pushScope( IScope scope ) { ISymbolTable targetSymTable = getTargetSymbolTable(); return targetSymTable.pushScope( scope ); }
/** * */ public synchronized void pushScope() { getThreadLocalSymbolTable().pushScope(); }
public IScope pushScope() { ISymbolTable targetSymTable = getTargetSymbolTable(); return targetSymTable.pushScope(); }
/** * */ public synchronized void pushScope() { getThreadLocalSymbolTable().pushScope(); }
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 ); }
private void pushClassSymbols( boolean bStatic, ClassScopeCache classScopeCache ) { getOwner().setDfsDeclInSetByName( bStatic ? classScopeCache.getStaticDfsMap() : classScopeCache.getNonstaticDfsMap() ); getSymbolTable().pushScope( bStatic ? classScopeCache.getStaticScope() : classScopeCache.getNonstaticScope() ); getOwner().pushParsingStaticMember( bStatic ); }
private void pushClassSymbols( boolean bStatic, ClassScopeCache classScopeCache ) { getOwner().setDfsDeclInSetByName( bStatic ? classScopeCache.getStaticDfsMap() : classScopeCache.getNonstaticDfsMap() ); getSymbolTable().pushScope( bStatic ? classScopeCache.getStaticScope() : classScopeCache.getNonstaticScope() ); getOwner().pushParsingStaticMember( bStatic ); }
_symTable.pushScope();
_symTable.pushScope();
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 ); } }
if ( isolatedScope ) _symTable.pushScope();
symTable.pushScope(); try
symTable.pushScope(); try
if ( isolatedScope ) _symTable.pushScope();
mi = ((IRelativeTypeInfo)iface.getTypeInfo()).getMethod( iface, strMethodName, parameterTypes ); symTable.pushScope(); TemplateRenderFunctionSymbol forwardFs; try