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

Side by Side Diff: pkg/compiler/lib/src/io/position_information.dart

Issue 2850783002: Dart SDK Spelling b, c, and d. (Closed)
Patch Set: Created 3 years, 7 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /// Source information system mapping that attempts a semantic mapping between 5 /// Source information system mapping that attempts a semantic mapping between
6 /// offsets of JavaScript code points to offsets of Dart code points. 6 /// offsets of JavaScript code points to offsets of Dart code points.
7 7
8 library dart2js.source_information.position; 8 library dart2js.source_information.position;
9 9
10 import '../common.dart'; 10 import '../common.dart';
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 /// ^ // the subexpression offset of the `*.bar()` call 687 /// ^ // the subexpression offset of the `*.bar()` call
688 /// ^ // the subexpression offset of the `baz()` call 688 /// ^ // the subexpression offset of the `baz()` call
689 /// 689 ///
690 /// Here, even though the JavaScript node for the `*.bar()` call contains 690 /// Here, even though the JavaScript node for the `*.bar()` call contains
691 /// the `foo()` its execution is identified by the `bar` identifier more than 691 /// the `foo()` its execution is identified by the `bar` identifier more than
692 /// the foo identifier. 692 /// the foo identifier.
693 /// 693 ///
694 final int subexpressionOffset; 694 final int subexpressionOffset;
695 695
696 /// The `left-to-right` offset of the step. This is like [subexpressionOffset] 696 /// The `left-to-right` offset of the step. This is like [subexpressionOffset]
697 /// bute restricted so that the offset of each subexpression in execution 697 /// but restricted so that the offset of each subexpression in execution
698 /// order is monotonically increasing. 698 /// order is monotonically increasing.
699 /// 699 ///
700 /// For instance: 700 /// For instance:
701 /// 701 ///
702 /// foo().bar(baz()); 702 /// foo().bar(baz());
703 /// ^ // the left-to-right offset of the `foo()` call 703 /// ^ // the left-to-right offset of the `foo()` call
704 /// ^ // the left-to-right offset of the `*.bar()` call 704 /// ^ // the left-to-right offset of the `*.bar()` call
705 /// ^ // the left-to-right offset of the `baz()` call 705 /// ^ // the left-to-right offset of the `baz()` call
706 /// 706 ///
707 /// Here, `baz()` is executed before `foo()` so we need to use 'f' as its best 707 /// Here, `baz()` is executed before `foo()` so we need to use 'f' as its best
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 1336
1337 @override 1337 @override
1338 CodePosition operator [](js.Node node) { 1338 CodePosition operator [](js.Node node) {
1339 CodePosition codePosition = codePositions[node]; 1339 CodePosition codePosition = codePositions[node];
1340 if (codePosition == null) { 1340 if (codePosition == null) {
1341 coverage.registerNodesWithoutOffset(node); 1341 coverage.registerNodesWithoutOffset(node);
1342 } 1342 }
1343 return codePosition; 1343 return codePosition;
1344 } 1344 }
1345 } 1345 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/inferrer/type_graph_nodes.dart ('k') | pkg/compiler/lib/src/js/placeholder_safety.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698