| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'package:front_end/src/fasta/kernel/utils.dart'; | 5 import 'package:front_end/src/fasta/kernel/utils.dart'; |
| 6 import 'package:front_end/src/fasta/scanner/token.dart' show Token; | 6 import 'package:front_end/src/fasta/scanner/token.dart' show Token; |
| 7 import 'package:front_end/src/fasta/type_inference/type_promotion.dart'; | 7 import 'package:front_end/src/fasta/type_inference/type_promotion.dart'; |
| 8 import 'package:kernel/ast.dart'; | 8 import 'package:kernel/ast.dart'; |
| 9 | 9 |
| 10 import '../builder/ast_factory.dart'; | 10 import '../builder/ast_factory.dart'; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 242 |
| 243 @override | 243 @override |
| 244 VariableGet variableGet( | 244 VariableGet variableGet( |
| 245 VariableDeclaration variable, | 245 VariableDeclaration variable, |
| 246 TypePromotionFact<VariableDeclaration> fact, | 246 TypePromotionFact<VariableDeclaration> fact, |
| 247 TypePromotionScope scope, | 247 TypePromotionScope scope, |
| 248 Token token) { | 248 Token token) { |
| 249 return new KernelVariableGet(variable, fact, scope) | 249 return new KernelVariableGet(variable, fact, scope) |
| 250 ..fileOffset = offsetForToken(token); | 250 ..fileOffset = offsetForToken(token); |
| 251 } | 251 } |
| 252 |
| 253 @override |
| 254 VariableSet variableSet(VariableDeclaration variable, Expression value) { |
| 255 return new KernelVariableSet(variable, value); |
| 256 } |
| 252 } | 257 } |
| OLD | NEW |