void scanNewNodes ( Set < AstChange > newNodes ) { BuildGlobalNamespace builder = new BuildGlobalNamespace ( ) ; for ( AstChange info : newNodes ) { if ( ! info . node . isQualifiedName ( ) && ! NodeUtil . mayBeObjectLitKey ( info . node ) ) { continue ; } scanFromNode ( builder , info . module , info . scope , info . node ) ; } }
If the client adds new nodes to the AST scan these new nodes to see if they ve added any references to the global namespace .