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

Function createPropertyAccessExpression

test/fixtures/snapshot/typescript.js:24014–24031  ·  view source on GitHub ↗
(expression, name)

Source from the content-addressed store, hash-verified

24012 }
24013 // @api
24014 function createPropertyAccessExpression(expression, name) {
24015 var node = createBaseExpression(206 /* SyntaxKind.PropertyAccessExpression */);
24016 node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression);
24017 node.name = asName(name);
24018 node.transformFlags =
24019 propagateChildFlags(node.expression) |
24020 (ts.isIdentifier(node.name) ?
24021 propagateIdentifierNameFlags(node.name) :
24022 propagateChildFlags(node.name));
24023 if (ts.isSuperKeyword(expression)) {
24024 // super method calls require a lexical 'this'
24025 // super method calls require 'super' hoisting in ES2017 and ES2018 async functions and async generators
24026 node.transformFlags |=
24027 256 /* TransformFlags.ContainsES2017 */ |
24028 128 /* TransformFlags.ContainsES2018 */;
24029 }
24030 return node;
24031 }
24032 // @api
24033 function updatePropertyAccessExpression(node, expression, name) {
24034 if (ts.isPropertyAccessChain(node)) {

Callers 6

createNodeFactoryFunction · 0.85
createMethodCallFunction · 0.85
createCallBindingFunction · 0.85
getNamespaceMemberNameFunction · 0.85

Calls 4

createBaseExpressionFunction · 0.85
asNameFunction · 0.85
propagateChildFlagsFunction · 0.85

Tested by

no test coverage detected