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

Side by Side Diff: pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart

Issue 2957593002: Spelling fixes e to i. (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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.serialization.resolved_ast; 5 library dart2js.serialization.resolved_ast;
6 6
7 import 'package:front_end/src/fasta/parser.dart' show Parser, ParserError; 7 import 'package:front_end/src/fasta/parser.dart' show Parser, ParserError;
8 import 'package:front_end/src/fasta/scanner.dart'; 8 import 'package:front_end/src/fasta/scanner.dart';
9 9
10 import '../common.dart'; 10 import '../common.dart';
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 Token getBeginToken(Uri uri, int charOffset), 382 Token getBeginToken(Uri uri, int charOffset),
383 DeserializerPlugin nativeDataDeserializer) { 383 DeserializerPlugin nativeDataDeserializer) {
384 DiagnosticReporter reporter = parsing.reporter; 384 DiagnosticReporter reporter = parsing.reporter;
385 Uri uri = objectDecoder.getUri(Key.URI); 385 Uri uri = objectDecoder.getUri(Key.URI);
386 386
387 /// Returns the first [Token] for parsing the [Node] for [element]. 387 /// Returns the first [Token] for parsing the [Node] for [element].
388 Token readBeginToken() { 388 Token readBeginToken() {
389 int charOffset = objectDecoder.getInt(Key.OFFSET); 389 int charOffset = objectDecoder.getInt(Key.OFFSET);
390 Token beginToken = getBeginToken(uri, charOffset); 390 Token beginToken = getBeginToken(uri, charOffset);
391 if (beginToken == null) { 391 if (beginToken == null) {
392 // TODO(johnniwinther): Handle unfound tokens by adding an erronous 392 // TODO(johnniwinther): Handle unfound tokens by adding an erroneous
393 // resolved ast kind. 393 // resolved ast kind.
394 reporter.internalError( 394 reporter.internalError(
395 element, "No token found for $element in $uri @ $charOffset"); 395 element, "No token found for $element in $uri @ $charOffset");
396 } 396 }
397 return beginToken; 397 return beginToken;
398 } 398 }
399 399
400 /// Create the [Node] for the element by parsing the source code. 400 /// Create the [Node] for the element by parsing the source code.
401 Node doParse(parse(Parser parser)) { 401 Node doParse(parse(Parser parser)) {
402 return parsing.measure(() { 402 return parsing.measure(() {
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 } 709 }
710 } 710 }
711 } 711 }
712 element.resolvedAst = 712 element.resolvedAst =
713 new ParsedResolvedAst(element, root, body, elements, uri); 713 new ParsedResolvedAst(element, root, body, elements, uri);
714 } 714 }
715 } 715 }
716 716
717 const Key PARAMETER_NODE = const Key('parameter.node'); 717 const Key PARAMETER_NODE = const Key('parameter.node');
718 const Key PARAMETER_INITIALIZER = const Key('parameter.initializer'); 718 const Key PARAMETER_INITIALIZER = const Key('parameter.initializer');
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/native/behavior.dart ('k') | pkg/compiler/lib/src/serialization/values.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698