MCPcopy Index your code
hub / github.com/reactjs/react-rails / scanTemplateElement

Function scanTemplateElement

lib/assets/javascripts/JSXTransformer.js:3717–3734  ·  view source on GitHub ↗
(option)

Source from the content-addressed store, hash-verified

3715 }
3716
3717 function scanTemplateElement(option) {
3718 var startsWith, template;
3719
3720 lookahead = null;
3721 skipComment();
3722
3723 startsWith = (option.head) ? '`' : '}';
3724
3725 if (source[index] !== startsWith) {
3726 throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
3727 }
3728
3729 template = scanTemplate();
3730
3731 peek();
3732
3733 return template;
3734 }
3735
3736 function testRegExp(pattern, flags) {
3737 var tmp = pattern,

Callers 1

parseTemplateElementFunction · 0.85

Calls 4

skipCommentFunction · 0.85
throwErrorFunction · 0.85
scanTemplateFunction · 0.85
peekFunction · 0.70

Tested by

no test coverage detected