Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
visitClass(node) {
if (node.type === Syntax.ClassDeclaration) {
this.currentScope().__define(node.id,
new Definition(
Variable.ClassName,
node.id,
node,
null,
null,
null
));
}
// FIXME: Maybe consider TDZ.
this.visit(node.superClass);
this.scopeManager.__nestClassScope(node);
visitClass(node) {
if (node.type === Syntax.ClassDeclaration) {
this.currentScope().__define(node.id,
new Definition(
Variable.ClassName,
node.id,
node,
null,
null,
null
));
}
// FIXME: Maybe consider TDZ.
this.visit(node.superClass);
this.scopeManager.__nestClassScope(node);
public visitClass(node: ESTree.Class) {
if (node.type === Syntax.ClassDeclaration) {
this.currentScope!.__define(
node.id!,
new Definition(VariableType.ClassName, node.id, node),
);
}
// FIXME: Maybe consider TDZ.
this.visit(node.superClass!);
this.scopeManager.__nestClassScope(node);
if (node.id) {
this.currentScope!.__define(
node.id,
new Definition(VariableType.ClassName, node.id, node),
);
value: function visitClass(node) {
if (node.type === Syntax.ClassDeclaration) {
this.currentScope().__define(node.id, new Definition(Variable.ClassName, node.id, node, null, null, null));
}
// FIXME: Maybe consider TDZ.
this.visit(node.superClass);
this.scopeManager.__nestClassScope(node);
if (node.id) {
this.currentScope().__define(node.id, new Definition(Variable.ClassName, node.id, node));
}
this.visit(node.body);
this.close(node);
}
},
visitClass(node) {
if (node.type === Syntax.ClassDeclaration) {
this.currentScope().__define(node.id,
new Definition(
Variable.ClassName,
node.id,
node,
null,
null,
null
));
}
// FIXME: Maybe consider TDZ.
this.visit(node.superClass);
this.scopeManager.__nestClassScope(node);
value: function visitClass(node) {
if (node.type === Syntax.ClassDeclaration) {
this.currentScope().__define(node.id, new Definition(Variable.ClassName, node.id, node, null, null, null));
}
// FIXME: Maybe consider TDZ.
this.visit(node.superClass);
this.scopeManager.__nestClassScope(node);
if (node.id) {
this.currentScope().__define(node.id, new Definition(Variable.ClassName, node.id, node));
}
this.visit(node.body);
this.close(node);
}
},
visitClass(node) {
if (node.type === Syntax.ClassDeclaration) {
this.currentScope().__define(node.id,
new Definition(
Variable.ClassName,
node.id,
node,
null,
null,
null
));
}
// FIXME: Maybe consider TDZ.
this.visit(node.superClass);
this.scopeManager.__nestClassScope(node);
visitClass(node) {
if (node.type === Syntax.ClassDeclaration) {
this.currentScope().__define(node.id,
new Definition(
Variable.ClassName,
node.id,
node,
null,
null,
null
));
}
// FIXME: Maybe consider TDZ.
this.visit(node.superClass);
this.scopeManager.__nestClassScope(node);
value: function visitClass(node) {
if (node.type === Syntax.ClassDeclaration) {
this.currentScope().__define(node.id, new Definition(Variable.ClassName, node.id, node, null, null, null));
}
// FIXME: Maybe consider TDZ.
this.visit(node.superClass);
this.scopeManager.__nestClassScope(node);
if (node.id) {
this.currentScope().__define(node.id, new Definition(Variable.ClassName, node.id, node));
}
this.visit(node.body);
this.close(node);
}
},
visitClass(node) {
if (node.type === Syntax.ClassDeclaration) {
this.currentScope().__define(node.id,
new Definition(
Variable.ClassName,
node.id,
node,
null,
null,
null
));
}
this.visit(node.superClass);
this.scopeManager.__nestClassScope(node);
if (node.id) {