import '../token.dart'; import 'node.dart'; import 'package:source_span/source_span.dart'; import 'variable_definition.dart'; class VariableDefinitionsContext extends Node { final Token LPAREN, RPAREN; final List variableDefinitions = []; VariableDefinitionsContext(this.LPAREN, this.RPAREN); @override FileSpan get span { var out = variableDefinitions.fold( LPAREN.span, (o, v) => o.expand(v.span)); return out.expand(RPAREN.span); } }