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

Issue 36323003: - Ensure that the token stream from generated source matches the (Closed)

Created:
7 years, 2 months ago by Ivan Posva
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

- Ensure that the token stream from generated source matches the original token stream in the presence of combinations of multiline string and string interpolation. If not this will cause mismatches when accessing code snippets, e.g when reporting parser errors or assertions. - Ensure that ScanAll and ScanTo are in sync when adding or counting tokens. - Added unit test for multiline strings and interpolation. - Expanded GenerateSource unit test to iterate through all loaded libraries. - Do not report columns for compilation errors in snapshotted code. - Do not report columns from exceptions and errors when dealing with snapshotted code. - Remove length field from TokenDescriptor. It was unused. - Remove TokenStream::ComputeTokenPosition. It was unused. R=fschneider@google.com, hausner@google.com Committed: https://code.google.com/p/dart/source/detail?r=29110

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -91 lines) Patch
runtime/lib/errors.cc View 3 chunks +8 lines, -5 lines 0 comments Download
runtime/lib/errors_patch.dart View 1 chunk +6 lines, -1 line 0 comments Download
runtime/lib/integers.cc View 1 chunk +1 line, -1 line 0 comments Download
runtime/vm/exceptions.cc View 2 chunks +7 lines, -4 lines 0 comments Download
runtime/vm/object.h View 2 chunks +0 lines, -3 lines 0 comments Download
runtime/vm/object.cc View 6 chunks +5 lines, -18 lines 0 comments Download
runtime/vm/parser.cc View 1 chunk +15 lines, -5 lines 0 comments Download
runtime/vm/scanner.h View 3 chunks +10 lines, -10 lines 0 comments Download
runtime/vm/scanner.cc View 5 chunks +30 lines, -4 lines 6 comments Download
runtime/vm/scanner_test.cc View 20 chunks +21 lines, -21 lines 0 comments Download
runtime/vm/snapshot_test.cc View 2 chunks +44 lines, -19 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Ivan Posva
7 years, 2 months ago (2013-10-23 01:07:52 UTC) #1
hausner
LGTM https://codereview.chromium.org/36323003/diff/1/runtime/vm/scanner.cc File runtime/vm/scanner.cc (right): https://codereview.chromium.org/36323003/diff/1/runtime/vm/scanner.cc#newcode923 runtime/vm/scanner.cc:923: index++; // We need to advance the index ...
7 years, 2 months ago (2013-10-23 16:44:50 UTC) #2
Florian Schneider
lgtm https://codereview.chromium.org/36323003/diff/1/runtime/vm/scanner.cc File runtime/vm/scanner.cc (right): https://codereview.chromium.org/36323003/diff/1/runtime/vm/scanner.cc#newcode931 runtime/vm/scanner.cc:931: } Strange indentation.
7 years, 2 months ago (2013-10-23 16:54:39 UTC) #3
Ivan Posva
https://codereview.chromium.org/36323003/diff/1/runtime/vm/scanner.cc File runtime/vm/scanner.cc (right): https://codereview.chromium.org/36323003/diff/1/runtime/vm/scanner.cc#newcode923 runtime/vm/scanner.cc:923: index++; // We need to advance the index everytime ...
7 years, 2 months ago (2013-10-23 18:20:00 UTC) #4
Ivan Posva
7 years, 2 months ago (2013-10-23 19:08:46 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 manually as r29110 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698