MCPcopy Index your code
hub / github.com/nodejs/node / scanJsxAttributeValue

Function scanJsxAttributeValue

test/fixtures/snapshot/typescript.js:12129–12140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12127 return token;
12128 }
12129 function scanJsxAttributeValue() {
12130 startPos = pos;
12131 switch (text.charCodeAt(pos)) {
12132 case 34 /* CharacterCodes.doubleQuote */:
12133 case 39 /* CharacterCodes.singleQuote */:
12134 tokenValue = scanString(/*jsxAttributeString*/ true);
12135 return token = 10 /* SyntaxKind.StringLiteral */;
12136 default:
12137 // If this scans anything other than `{`, it's a parse error.
12138 return scan();
12139 }
12140 }
12141 function reScanJsxAttributeValue() {
12142 pos = tokenPos = startPos;
12143 return scanJsxAttributeValue();

Callers 2

reScanJsxAttributeValueFunction · 0.85
parseJsxAttributeFunction · 0.85

Calls 2

scanStringFunction · 0.85
scanFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…