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

Side by Side Diff: pkg/front_end/lib/src/incremental/unlinked_unit.dart

Issue 2957503003: Don't peek when parsing mixin applications. (Closed)
Patch Set: Created 3 years, 6 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'dart:typed_data'; 5 import 'dart:typed_data';
6 6
7 import 'package:front_end/src/base/api_signature.dart'; 7 import 'package:front_end/src/base/api_signature.dart';
8 import 'package:front_end/src/fasta/parser/listener.dart' show Listener; 8 import 'package:front_end/src/fasta/parser/listener.dart' show Listener;
9 import 'package:front_end/src/fasta/parser/parser.dart' show Parser, optional; 9 import 'package:front_end/src/fasta/parser/parser.dart' show Parser, optional;
10 import 'package:front_end/src/fasta/parser/top_level_parser.dart'; 10 import 'package:front_end/src/fasta/parser/top_level_parser.dart';
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 @override 112 @override
113 Token parseFunctionBody(Token token, bool isExpression, bool allowAbstract) { 113 Token parseFunctionBody(Token token, bool isExpression, bool allowAbstract) {
114 if (identical('{', token.lexeme)) { 114 if (identical('{', token.lexeme)) {
115 Token close = skipBlock(token); 115 Token close = skipBlock(token);
116 bodyRanges.add(new _BodyRange(token.charOffset, close.charOffset)); 116 bodyRanges.add(new _BodyRange(token.charOffset, close.charOffset));
117 return close; 117 return close;
118 } 118 }
119 return super.parseFunctionBody(token, isExpression, allowAbstract); 119 return super.parseFunctionBody(token, isExpression, allowAbstract);
120 } 120 }
121 121
122 Token parseMixinApplication(Token token) { 122 Token parseMixinApplicationRest(Token token) {
123 hasMixin = true; 123 hasMixin = true;
124 return super.parseMixinApplication(token); 124 return super.parseMixinApplicationRest(token);
125 } 125 }
126 } 126 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698