private void makeLocalNamesUnique ( Node fnNode , boolean isCallInLoop ) { Supplier < String > idSupplier = compiler . getUniqueNameIdSupplier ( ) ; // Make variable names unique to this instance. NodeTraversal . traverseScopeRoots ( compiler , null , ImmutableList . of ( fnNode ) , new MakeDeclaredNamesUnique ( new InlineRenamer ( compiler . getCodingConvention ( ) , idSupplier , "inline_" , isCallInLoop , true , null ) , false ) , true ) ; // Make label names unique to this instance. new RenameLabels ( compiler , new LabelNameSupplier ( idSupplier ) , false , false ) . process ( null , fnNode ) ; }
Fix - up all local names to be unique for this subtree .