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.body_builder; | 5 library fasta.body_builder; |
6 | 6 |
7 import '../fasta_codes.dart' | 7 import '../fasta_codes.dart' |
8 show FastaMessage, codeExpectedButGot, codeExpectedFunctionBody; | 8 show FastaMessage, codeExpectedButGot, codeExpectedFunctionBody; |
9 | 9 |
10 import '../parser/parser.dart' show FormalParameterType, optional; | 10 import '../parser/parser.dart' show FormalParameterType, optional; |
(...skipping 16 matching lines...) Expand all Loading... |
27 import '../parser/dart_vm_native.dart' show skipNativeClause; | 27 import '../parser/dart_vm_native.dart' show skipNativeClause; |
28 | 28 |
29 import '../scanner/token.dart' | 29 import '../scanner/token.dart' |
30 show BeginGroupToken, Token, isBinaryOperator, isMinusOperator; | 30 show BeginGroupToken, Token, isBinaryOperator, isMinusOperator; |
31 | 31 |
32 import '../errors.dart' show formatUnexpected, internalError; | 32 import '../errors.dart' show formatUnexpected, internalError; |
33 | 33 |
34 import '../source/scope_listener.dart' | 34 import '../source/scope_listener.dart' |
35 show JumpTargetKind, NullValue, ScopeListener; | 35 show JumpTargetKind, NullValue, ScopeListener; |
36 | 36 |
37 import '../builder/scope.dart' show ProblemBuilder, Scope; | 37 import '../scope.dart' show ProblemBuilder; |
38 | 38 |
39 import '../source/outline_builder.dart' show asyncMarkerFromTokens; | 39 import '../source/outline_builder.dart' show asyncMarkerFromTokens; |
40 | 40 |
41 import 'fasta_accessors.dart'; | 41 import 'fasta_accessors.dart'; |
42 | 42 |
43 import '../quote.dart' | 43 import '../quote.dart' |
44 show | 44 show |
45 Quote, | 45 Quote, |
46 analyzeQuote, | 46 analyzeQuote, |
47 unescape, | 47 unescape, |
(...skipping 2876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2924 } else if (node is PrefixBuilder) { | 2924 } else if (node is PrefixBuilder) { |
2925 return node.name; | 2925 return node.name; |
2926 } else if (node is ThisAccessor) { | 2926 } else if (node is ThisAccessor) { |
2927 return node.isSuper ? "super" : "this"; | 2927 return node.isSuper ? "super" : "this"; |
2928 } else if (node is FastaAccessor) { | 2928 } else if (node is FastaAccessor) { |
2929 return node.plainNameForRead; | 2929 return node.plainNameForRead; |
2930 } else { | 2930 } else { |
2931 return internalError("Unhandled: ${node.runtimeType}"); | 2931 return internalError("Unhandled: ${node.runtimeType}"); |
2932 } | 2932 } |
2933 } | 2933 } |
OLD | NEW |