public static String escapeKeyword ( String symbol ) { if ( swiftKeywords . contains ( symbol ) ) { return "`" + symbol + "`" ; } else if ( reservedSymbols . contains ( symbol ) ) { return symbol + "$" ; } else { return symbol ; } }
Returns the escaped Pegasus symbol for use in Swift source code .