Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Side by Side Diff: pkg/front_end/lib/src/fasta/parser/listener.dart

Issue 2979463002: Revert "Tweak public APIs and use them in patch_sdk, dart2js, and kernel-service." (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 '../fasta_codes.dart' show FastaMessage; 7 import '../fasta_codes.dart' show FastaMessage;
8 8
9 import '../../scanner/token.dart' show BeginToken, Token, TokenType; 9 import '../../scanner/token.dart' show BeginToken, Token, TokenType;
10 10
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 void beginMember(Token token) {} 528 void beginMember(Token token) {}
529 529
530 /// This event is added for convenience. Normally, one should override 530 /// This event is added for convenience. Normally, one should override
531 /// [endMethod] or [endFields] instead. 531 /// [endMethod] or [endFields] instead.
532 void endMember() { 532 void endMember() {
533 logEvent("Member"); 533 logEvent("Member");
534 } 534 }
535 535
536 /// This event can be used to support non-compliant (with respect to Dart 536 /// This event can be used to support non-compliant (with respect to Dart
537 /// Language Specification) Dart VM native clauses. See 537 /// Language Specification) Dart VM native clauses. See
538 /// [native_support.dart]. 538 /// [dart_vm_native.dart].
539 Link<Token> handleMemberName(Link<Token> identifiers) => identifiers; 539 Link<Token> handleMemberName(Link<Token> identifiers) => identifiers;
540 540
541 void beginMethod(Token token, Token name) {} 541 void beginMethod(Token token, Token name) {}
542 542
543 /// Handle the end of a method declaration. Substructures: 543 /// Handle the end of a method declaration. Substructures:
544 /// - metadata 544 /// - metadata
545 /// - modifiers 545 /// - modifiers
546 /// - return type 546 /// - return type
547 /// - method name (identifier, possibly qualified) 547 /// - method name (identifier, possibly qualified)
548 /// - type variables 548 /// - type variables
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 1091
1092 final FastaMessage message; 1092 final FastaMessage message;
1093 1093
1094 ParserError(this.beginOffset, this.endOffset, this.message); 1094 ParserError(this.beginOffset, this.endOffset, this.message);
1095 1095
1096 ParserError.fromTokens(Token begin, Token end, FastaMessage message) 1096 ParserError.fromTokens(Token begin, Token end, FastaMessage message)
1097 : this(begin.charOffset, end.charOffset + end.charCount, message); 1097 : this(begin.charOffset, end.charOffset + end.charCount, message);
1098 1098
1099 String toString() => "@${beginOffset}: ${message.message}\n${message.tip}"; 1099 String toString() => "@${beginOffset}: ${message.message}\n${message.tip}";
1100 } 1100 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/dart_vm_native.dart ('k') | pkg/front_end/lib/src/fasta/parser/native_support.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698