OLD | NEW |
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 } |
OLD | NEW |