Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Side by Side Diff: pkg/front_end/lib/src/fasta/kernel/kernel_variable_builder.dart

Issue 2691523002: Ensure locations are always provided, but don't store them yet. (Closed)
Patch Set: Address comments. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library fasta.kernel_variable_builder; 5 library fasta.kernel_variable_builder;
6 6
7 import 'package:kernel/ast.dart' show 7 import 'package:kernel/ast.dart' show
8 VariableDeclaration; 8 VariableDeclaration;
9 9
10 import 'kernel_builder.dart' show 10 import 'kernel_builder.dart' show
11 Builder; 11 Builder;
12 12
13 class KernelVariableBuilder extends Builder { 13 class KernelVariableBuilder extends Builder {
14 final VariableDeclaration variable; 14 final VariableDeclaration variable;
15 15
16 KernelVariableBuilder(this.variable); 16 KernelVariableBuilder(VariableDeclaration variable, Builder parent)
17 : variable = variable,
18 super(parent, variable.fileOffset, parent.fileUri);
17 19
18 bool get isLocal => true; 20 bool get isLocal => true;
19 21
20 VariableDeclaration get target => variable; 22 VariableDeclaration get target => variable;
21 } 23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698