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

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

Issue 2722503003: Compute correct parent and fileUri for top-level fields. (Closed)
Patch Set: Created 3 years, 9 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(VariableDeclaration variable, Builder parent) 16 KernelVariableBuilder(
17 VariableDeclaration variable, Builder parent, Uri fileUri)
17 : variable = variable, 18 : variable = variable,
18 super(parent, variable.fileOffset, parent.fileUri); 19 super(parent, variable.fileOffset, fileUri);
19 20
20 bool get isLocal => true; 21 bool get isLocal => true;
21 22
22 VariableDeclaration get target => variable; 23 VariableDeclaration get target => variable;
23 } 24 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/body_builder.dart ('k') | pkg/front_end/test/fasta/function_in_field.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698