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

Function markerApply

lib/assets/javascripts/JSXTransformer.js:4170–4191  ·  view source on GitHub ↗
(marker, node)

Source from the content-addressed store, hash-verified

4168 }
4169
4170 function markerApply(marker, node) {
4171 if (extra.range) {
4172 node.range = [marker.offset, index];
4173 }
4174 if (extra.loc) {
4175 node.loc = {
4176 start: {
4177 line: marker.line,
4178 column: marker.col
4179 },
4180 end: {
4181 line: lineNumber,
4182 column: index - lineStart
4183 }
4184 };
4185 node = delegate.postProcess(node);
4186 }
4187 if (extra.attachComment) {
4188 processComment(node);
4189 }
4190 return node;
4191 }
4192
4193 SyntaxTreeDelegate = {
4194

Callers 15

parseArrayInitialiserFunction · 0.85
parsePropertyFunctionFunction · 0.85
parseObjectPropertyKeyFunction · 0.85
parseObjectPropertyFunction · 0.85
parseObjectInitialiserFunction · 0.85
parseTemplateElementFunction · 0.85
parseTemplateLiteralFunction · 0.85
parseGroupExpressionFunction · 0.85
parsePrimaryExpressionFunction · 0.85
parseNonComputedPropertyFunction · 0.85

Calls 1

processCommentFunction · 0.85

Tested by

no test coverage detected