MCPcopy Create free account
hub / github.com/MirrowApp/mirrow / parseStringLiteral

Method parseStringLiteral

packages/core/src/compiler/parser.ts:827–834  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

825 }
826
827 private parseStringLiteral(): StringLiteral {
828 const token = this.consume(TokenType.STRING, "Expected string literal");
829 return {
830 type: "StringLiteral",
831 value: token.value,
832 position: token.position,
833 };
834 }
835
836 private parseNumberLiteral(): NumberLiteral | StringLiteral {
837 const token = this.consume(TokenType.NUMBER, "Expected numeric literal");

Callers 4

parseVariableValueMethod · 0.95
collectBlockEntriesMethod · 0.95
parseAttributeValueMethod · 0.95
parseTupleItemMethod · 0.95

Calls 1

consumeMethod · 0.95

Tested by

no test coverage detected