MCPcopy Index your code
hub / github.com/danielstjules/jsinspect / isES6ModuleImport

Method isES6ModuleImport

lib/nodeUtils.js:145–147  ·  view source on GitHub ↗

* Returns whether or not the nodes are part of an ES6 module import. * * @param {Node[]} nodes * @returns {boolean}

(nodes)

Source from the content-addressed store, hash-verified

143 * @returns {boolean}
144 */
145 static isES6ModuleImport(nodes) {
146 return nodes[0] && nodes[0].type === 'ImportDeclaration';
147 }
148
149 /**
150 * Returns whether or not the nodes belong to class boilerplate.

Callers 2

_walkMethod · 0.80
nodeUtilsSpec.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected