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

Method parseQuotedString

compiler/companion/src/utils/TextParser.ts:36–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 parseQuotedString(): string {
37 if (this.tryParse('"')) {
38 return this.parseUntilCharCode(CharCode.doubleQuote);
39 } else {
40 this.parse("'");
41 return this.parseUntilCharCode(CharCode.singleQuote);
42 }
43 }
44
45 parseUntilCharCode(charCode: number): string {
46 let startPosition = this.position;

Callers 1

parseImportFunction · 0.80

Calls 3

tryParseMethod · 0.95
parseUntilCharCodeMethod · 0.95
parseMethod · 0.95

Tested by

no test coverage detected