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