private static Expression symbolWithNamespace ( String requireSymbol , String fullyQualifiedSymbol ) { GoogRequire require = GoogRequire . create ( requireSymbol ) ; if ( fullyQualifiedSymbol . equals ( require . symbol ( ) ) ) { return require . reference ( ) ; } String ident = fullyQualifiedSymbol . substring ( require . symbol ( ) . length ( ) + 1 ) ; return require . dotAccess ( ident ) ; }
Returns a code chunk that accesses the given symbol .