visitVarDefinition method

  1. @override
void visitVarDefinition(
  1. VarDefinition node
)
override

Implementation

@override
void visitVarDefinition(VarDefinition node) {
  // Only record var definitions that have multiple expressions (comma
  // separated for mixin parameter substitution.
  var exprs = (node.expression as Expressions).expressions;
  if (exprs.length > 1) {
    varDefs[node.definedName] = node;
  }
  super.visitVarDefinition(node);
}