MCPcopy Index your code
hub / github.com/processing/p5.js / FunctionDeclaration

Function FunctionDeclaration

src/core/friendly_errors/sketch_verifier.js:100–107  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

98 }
99 },
100 FunctionDeclaration(node) {
101 if (node.id && node.id.type === 'Identifier') {
102 userDefinitions.functions.push({
103 name: node.id.name,
104 line: node.loc.start.line + lineOffset
105 });
106 }
107 },
108 // We consider class declarations to be a special form of variable
109 // declaration.
110 ClassDeclaration(node) {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected