public static GoogRequire createWithAlias(String symbol, String alias) {
    CodeChunkUtils.checkId(alias);
    return new AutoValue_GoogRequire(
        symbol,
        VariableDeclaration.builder(alias).setRhs(GOOG_REQUIRE.call(stringLiteral(symbol))).build(),
        /*isTypeRequire=*/ false);
  }
public static GoogRequire createWithAlias ( String symbol , String alias ) { CodeChunkUtils . checkId ( alias ) ; return new AutoValue_GoogRequire ( symbol , VariableDeclaration . builder ( alias ) . setRhs ( GOOG_REQUIRE . call ( stringLiteral ( symbol ) ) ) . build ( ) , false ) ; }
Creates a new {@code GoogRequire} that requires the given symbol and aliases it to the given
name: {@code var alias = goog.require('symbol'); }