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

Unified Diff: pkg/compiler/lib/src/io/position_information.dart

Issue 1287973002: Check for one-to-many source mappings. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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/js_ast/test/printer_callback_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/io/position_information.dart
diff --git a/pkg/compiler/lib/src/io/position_information.dart b/pkg/compiler/lib/src/io/position_information.dart
index 22414a023317f88f13cbee9c556d96240b59de5f..31c545c20d999f9700d68dd860ba293f1a6dccce 100644
--- a/pkg/compiler/lib/src/io/position_information.dart
+++ b/pkg/compiler/lib/src/io/position_information.dart
@@ -234,7 +234,8 @@ class CodePosition {
/// Registry for mapping [js.Node]s to their [CodePosition].
class CodePositionRecorder {
- Map<js.Node, CodePosition> _codePositionMap = <js.Node, CodePosition>{};
+ Map<js.Node, CodePosition> _codePositionMap =
+ new Map<js.Node, CodePosition>.identity();
void registerPositions(js.Node node,
int startPosition,
« no previous file with comments | « no previous file | pkg/js_ast/test/printer_callback_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698