public Scope getDefiningScope ( String name ) { for ( Scope s = this ; s != null ; s = s . parentScope ) { Map < String , Symbol > symbolTable = s . getSymbolTable ( ) ; if ( symbolTable != null && symbolTable . containsKey ( name ) ) { return s ; } } return null ; }
Returns the scope in which this name is defined