private static String escapeKeyword ( String symbol , EscapeStrategy strategy ) { if ( tsKeywords . contains ( symbol ) ) { if ( strategy . equals ( EscapeStrategy . MANGLE ) ) { return symbol + "$" ; } else { return "\"" + symbol + "\"" ; } } else { return symbol ; } }
Returns the escaped Pegasus symbol for use in Typescript source code .