Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.parser.listener; | 5 library fasta.parser.listener; |
| 6 | 6 |
| 7 import '../scanner/token.dart' show BeginGroupToken, Token; | 7 import '../scanner/token.dart' show BeginGroupToken, Token; |
| 8 | 8 |
| 9 import '../util/link.dart' show Link; | 9 import '../util/link.dart' show Link; |
| 10 | 10 |
| (...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 835 } | 835 } |
| 836 | 836 |
| 837 void handleNoArguments(Token token) { | 837 void handleNoArguments(Token token) { |
| 838 logEvent("NoArguments"); | 838 logEvent("NoArguments"); |
| 839 } | 839 } |
| 840 | 840 |
| 841 void handleNoExpression(Token token) { | 841 void handleNoExpression(Token token) { |
| 842 logEvent("NoExpression"); | 842 logEvent("NoExpression"); |
| 843 } | 843 } |
| 844 | 844 |
| 845 void handleNoConstructorReferenceContinuationAfterTypeArguments(Token token) { | |
|
ahe
2017/03/02 07:23:49
I'd like to see documentation on this method, and
scheglov
2017/03/02 16:26:27
I thought it is the established order this is code
ahe
2017/03/02 17:23:18
Well, I'm trying to atone for my past mistakes.
I
| |
| 846 logEvent("NoConstructorReferenceContinuationAfterTypeArguments"); | |
| 847 } | |
| 848 | |
| 845 void handleNoType(Token token) { | 849 void handleNoType(Token token) { |
| 846 logEvent("NoType"); | 850 logEvent("NoType"); |
| 847 } | 851 } |
| 848 | 852 |
| 849 void handleNoTypeVariables(Token token) { | 853 void handleNoTypeVariables(Token token) { |
| 850 logEvent("NoTypeVariables"); | 854 logEvent("NoTypeVariables"); |
| 851 } | 855 } |
| 852 | 856 |
| 853 void handleOperator(Token token) { | 857 void handleOperator(Token token) { |
| 854 logEvent("Operator"); | 858 logEvent("Operator"); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 959 | 963 |
| 960 final Map arguments; | 964 final Map arguments; |
| 961 | 965 |
| 962 ParserError(this.beginOffset, this.endOffset, this.kind, this.arguments); | 966 ParserError(this.beginOffset, this.endOffset, this.kind, this.arguments); |
| 963 | 967 |
| 964 ParserError.fromTokens(Token begin, Token end, ErrorKind kind, Map arguments) | 968 ParserError.fromTokens(Token begin, Token end, ErrorKind kind, Map arguments) |
| 965 : this(begin.charOffset, end.charOffset + end.charCount, kind, arguments); | 969 : this(begin.charOffset, end.charOffset + end.charCount, kind, arguments); |
| 966 | 970 |
| 967 String toString() => "@${beginOffset}: $kind $arguments"; | 971 String toString() => "@${beginOffset}: $kind $arguments"; |
| 968 } | 972 } |
| OLD | NEW |