| 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.builder_accessors; | 5 library fasta.builder_accessors; |
| 6 | 6 |
| 7 export 'frontend_accessors.dart' show | 7 export 'frontend_accessors.dart' show |
| 8 wrapInvalid; | 8 wrapInvalid; |
| 9 | 9 |
| 10 import 'frontend_accessors.dart' show | 10 import 'frontend_accessors.dart' show |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 return throwNoSuchMethodError(plainNameForRead, new Arguments.empty(), uri, | 90 return throwNoSuchMethodError(plainNameForRead, new Arguments.empty(), uri, |
| 91 charOffset, coreTypes, isGetter: true); | 91 charOffset, coreTypes, isGetter: true); |
| 92 } | 92 } |
| 93 | 93 |
| 94 Expression makeInvalidWrite(Expression value) { | 94 Expression makeInvalidWrite(Expression value) { |
| 95 return throwNoSuchMethodError(plainNameForWrite, | 95 return throwNoSuchMethodError(plainNameForWrite, |
| 96 new Arguments(<Expression>[value]), uri, charOffset, coreTypes, | 96 new Arguments(<Expression>[value]), uri, charOffset, coreTypes, |
| 97 isSetter: true); | 97 isSetter: true); |
| 98 } | 98 } |
| 99 | 99 |
| 100 Expression doInvocation(int charOffset, Arguments arguments); | 100 TreeNode doInvocation(int charOffset, Arguments arguments); |
| 101 | 101 |
| 102 buildPropertyAccess(IncompleteSend send, bool isNullAware) { | 102 buildPropertyAccess(IncompleteSend send, bool isNullAware) { |
| 103 if (send is SendAccessor) { | 103 if (send is SendAccessor) { |
| 104 return buildMethodInvocation(buildSimpleRead(), send.name, send.arguments, | 104 return buildMethodInvocation(buildSimpleRead(), send.name, send.arguments, |
| 105 charOffset, isNullAware: isNullAware); | 105 charOffset, isNullAware: isNullAware); |
| 106 } else { | 106 } else { |
| 107 return PropertyAccessor.make(helper, charOffset, buildSimpleRead(), | 107 return PropertyAccessor.make(helper, charOffset, buildSimpleRead(), |
| 108 send.name, null, null, isNullAware); | 108 send.name, null, null, isNullAware); |
| 109 } | 109 } |
| 110 } | 110 } |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 buildIsNull(new VariableGet(variable)), | 721 buildIsNull(new VariableGet(variable)), |
| 722 new NullLiteral(), | 722 new NullLiteral(), |
| 723 new MethodInvocation(new VariableGet(variable), name, arguments) | 723 new MethodInvocation(new VariableGet(variable), name, arguments) |
| 724 ..fileOffset = charOffset, | 724 ..fileOffset = charOffset, |
| 725 const DynamicType())); | 725 const DynamicType())); |
| 726 } else { | 726 } else { |
| 727 return new MethodInvocation(receiver, name, arguments) | 727 return new MethodInvocation(receiver, name, arguments) |
| 728 ..fileOffset = charOffset; | 728 ..fileOffset = charOffset; |
| 729 } | 729 } |
| 730 } | 730 } |
| OLD | NEW |