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

Function ClassDeclaration

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

Source from the content-addressed store, hash-verified

108 // We consider class declarations to be a special form of variable
109 // declaration.
110 ClassDeclaration(node) {
111 if (node.id && node.id.type === 'Identifier') {
112 userDefinitions.variables.push({
113 name: node.id.name,
114 line: node.loc.start.line + lineOffset
115 });
116 }
117 }
118 });
119 } catch (error) {
120 // TODO: Replace this with a friendly error message.

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected