| 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.fasta_accessors; | 5 library fasta.fasta_accessors; |
| 6 | 6 |
| 7 export 'package:kernel/frontend/accessors.dart' show wrapInvalid; | 7 export 'frontend_accessors.dart' show wrapInvalid; |
| 8 | 8 |
| 9 import 'package:kernel/frontend/accessors.dart' | 9 import 'frontend_accessors.dart' show Accessor, buildIsNull, makeLet; |
| 10 show Accessor, buildIsNull, makeLet; | |
| 11 | 10 |
| 12 import 'package:kernel/ast.dart'; | 11 import 'package:kernel/ast.dart'; |
| 13 | 12 |
| 14 import '../errors.dart' show internalError; | 13 import '../errors.dart' show internalError; |
| 15 | 14 |
| 16 import '../builder/scope.dart' show AccessErrorBuilder, ProblemBuilder; | 15 import '../builder/scope.dart' show AccessErrorBuilder, ProblemBuilder; |
| 17 | 16 |
| 18 import 'package:kernel/frontend/accessors.dart' as kernel | 17 import 'frontend_accessors.dart' as kernel |
| 19 show | 18 show |
| 20 IndexAccessor, | 19 IndexAccessor, |
| 21 NullAwarePropertyAccessor, | 20 NullAwarePropertyAccessor, |
| 22 PropertyAccessor, | 21 PropertyAccessor, |
| 23 ReadOnlyAccessor, | 22 ReadOnlyAccessor, |
| 24 StaticAccessor, | 23 StaticAccessor, |
| 25 SuperIndexAccessor, | 24 SuperIndexAccessor, |
| 26 SuperPropertyAccessor, | 25 SuperPropertyAccessor, |
| 27 ThisIndexAccessor, | 26 ThisIndexAccessor, |
| 28 ThisPropertyAccessor, | 27 ThisPropertyAccessor, |
| (...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 new ConditionalExpression( | 815 new ConditionalExpression( |
| 817 buildIsNull(new VariableGet(variable)), | 816 buildIsNull(new VariableGet(variable)), |
| 818 new NullLiteral(), | 817 new NullLiteral(), |
| 819 new MethodInvocation(new VariableGet(variable), name, arguments) | 818 new MethodInvocation(new VariableGet(variable), name, arguments) |
| 820 ..fileOffset = offset, | 819 ..fileOffset = offset, |
| 821 const DynamicType())); | 820 const DynamicType())); |
| 822 } else { | 821 } else { |
| 823 return new MethodInvocation(receiver, name, arguments)..fileOffset = offset; | 822 return new MethodInvocation(receiver, name, arguments)..fileOffset = offset; |
| 824 } | 823 } |
| 825 } | 824 } |
| OLD | NEW |