MCPcopy Create free account
hub / github.com/ampproject/amphtml / createMemberNode

Function createMemberNode

third_party/react-dates/scope-require.js:81–90  ·  view source on GitHub ↗

* Convert the given Identifier node to be referenced from the scope name * @param {!Object} identifierNode * @param {string} scopeName * @return {!Object}

(identifierNode, scopeName)

Source from the content-addressed store, hash-verified

79 * @return {!Object}
80 */
81function createMemberNode(identifierNode, scopeName) {
82 return {
83 'type': 'MemberExpression',
84 'object': {
85 'type': 'Identifier',
86 'name': scopeName,
87 },
88 'property': identifierNode,
89 };
90}
91
92program
93 .description('Scope global `require` calls to an object.')

Callers 1

replaceIdentifierFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected