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

Unified Diff: pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart

Issue 2710533002: Minor fixes. (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/parser/listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart b/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
index 0a9fe2d03560ebe53232ee64ae9a1cdafcb6d558..a611764da139060ffd1a04f376c08fbfcb33cd5d 100644
--- a/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
+++ b/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
@@ -27,6 +27,8 @@ import '../source/scope_listener.dart'
import '../kernel/kernel_builder.dart'
show Builder, KernelLibraryBuilder, ProcedureBuilder;
+import '../parser/parser.dart' show optional;
+
import '../quote.dart';
import '../source/outline_builder.dart' show asyncMarkerFromTokens;
@@ -796,7 +798,7 @@ class AstBuilder extends ScopeListener {
Token classKeyword;
// TODO(paulberry,ahe): This is a hack. The parser should give us the class
// keyword.
- if (identical(beginToken.value, 'abstract')) {
+ if (optional('abstract', beginToken)) {
classKeyword = beginToken.next;
} else {
classKeyword = beginToken;
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/parser/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698