MCPcopy Create free account
hub / github.com/Snapchat/Valdi / append

Method append

compiler/companion/src/native/IRtoString.ts:99–102  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

97 return str
98 .replace(/\\/g, '\\\\') // backslash first
99 .replace(/'/g, "\\'") // single quote
100 .replace(/\n/g, '\\n') // newline
101 .replace(/\r/g, '\\r') // carriage return
102 .replace(/\t/g, '\\t'); // tab
103}
104
105class IRStringWriter {

Callers 4

appendQuotedStringMethod · 0.95
appendVariableMethod · 0.95
appendVariablesMethod · 0.95
appendAtomsMethod · 0.95

Calls 1

appendMethod · 0.65

Tested by

no test coverage detected