| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 dart2js.parser.element_listener; | 5 library dart2js.parser.element_listener; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../diagnostics/messages.dart' show MessageTemplate; | 8 import '../diagnostics/messages.dart' show MessageTemplate; |
| 9 import '../elements/elements.dart' | 9 import '../elements/elements.dart' |
| 10 show Element, LibraryElement, MetadataAnnotation; | 10 show Element, LibraryElement, MetadataAnnotation; |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 } | 403 } |
| 404 | 404 |
| 405 @override | 405 @override |
| 406 void handleQualified(Token period) { | 406 void handleQualified(Token period) { |
| 407 Identifier last = popNode(); | 407 Identifier last = popNode(); |
| 408 Expression first = popNode(); | 408 Expression first = popNode(); |
| 409 pushNode(new Send(first, last)); | 409 pushNode(new Send(first, last)); |
| 410 } | 410 } |
| 411 | 411 |
| 412 @override | 412 @override |
| 413 void handleNoConstructorReferenceContinuationAfterTypeArguments(Token token) { |
| 414 } |
| 415 |
| 416 @override |
| 413 void handleNoType(Token token) { | 417 void handleNoType(Token token) { |
| 414 pushNode(null); | 418 pushNode(null); |
| 415 } | 419 } |
| 416 | 420 |
| 417 @override | 421 @override |
| 418 void endTypeVariable(Token token, Token extendsOrSuper) { | 422 void endTypeVariable(Token token, Token extendsOrSuper) { |
| 419 NominalTypeAnnotation bound = popNode(); | 423 NominalTypeAnnotation bound = popNode(); |
| 420 Identifier name = popNode(); | 424 Identifier name = popNode(); |
| 421 pushNode(new TypeVariable(name, extendsOrSuper, bound)); | 425 pushNode(new TypeVariable(name, extendsOrSuper, bound)); |
| 422 rejectBuiltInIdentifier(name); | 426 rejectBuiltInIdentifier(name); |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 memberErrors = memberErrors.tail.prepend(true); | 944 memberErrors = memberErrors.tail.prepend(true); |
| 941 } | 945 } |
| 942 reporter.reportErrorMessage(spannable, errorCode, arguments); | 946 reporter.reportErrorMessage(spannable, errorCode, arguments); |
| 943 } | 947 } |
| 944 | 948 |
| 945 void reportErrorFromToken(Token token, MessageKind errorCode, | 949 void reportErrorFromToken(Token token, MessageKind errorCode, |
| 946 [Map arguments = const {}]) { | 950 [Map arguments = const {}]) { |
| 947 reportError(reporter.spanFromToken(token), errorCode, arguments); | 951 reportError(reporter.spanFromToken(token), errorCode, arguments); |
| 948 } | 952 } |
| 949 } | 953 } |
| OLD | NEW |