MCPcopy
hub / github.com/mobxjs/mobx / markerApply

Function markerApply

docs/assets/getting-started-assets/javascripts/JSXTransformer.js:4598–4619  ·  view source on GitHub ↗
(marker, node)

Source from the content-addressed store, hash-verified

4596 }
4597
4598 function markerApply(marker, node) {
4599 if (extra.range) {
4600 node.range = [marker.offset, index]
4601 }
4602 if (extra.loc) {
4603 node.loc = {
4604 start: {
4605 line: marker.line,
4606 column: marker.col
4607 },
4608 end: {
4609 line: lineNumber,
4610 column: index - lineStart
4611 }
4612 }
4613 node = delegate.postProcess(node)
4614 }
4615 if (extra.attachComment) {
4616 processComment(node)
4617 }
4618 return node
4619 }
4620
4621 SyntaxTreeDelegate = {
4622 name: "SyntaxTree",

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