blob: 026871093663ba42992e14bc10ee5cca8bb189a7 [file] [log] [blame]
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library fasta.kernel_variable_builder;
import 'package:kernel/ast.dart' show VariableDeclaration;
import '../builder/declaration.dart';
class VariableBuilder extends BuilderImpl {
final Builder parent;
final Uri fileUri;
final VariableDeclaration variable;
VariableBuilder(this.variable, this.parent, this.fileUri);
int get charOffset => variable.fileOffset;
bool get isLocal => true;
bool get isConst => variable.isConst;
bool get isFinal => variable.isFinal;
VariableDeclaration get target => variable;
String get fullNameForErrors => ?? "<unnamed>";