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

Issue 9325047: Add token index position to classes and types for more accurate error reporting. (Closed)

Created:
8 years, 10 months ago by regis
Modified:
8 years, 10 months ago
Reviewers:
siva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add token index position to classes and types for more accurate error reporting. Committed: https://code.google.com/p/dart/source/detail?r=3965

Patch Set 1 #

Total comments: 11

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -256 lines) Patch
M runtime/vm/ast_printer_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/ast_test.cc View 1 3 chunks +9 lines, -11 lines 0 comments Download
M runtime/vm/class_finalizer.h View 1 2 chunks +4 lines, -7 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 1 12 chunks +16 lines, -39 lines 0 comments Download
M runtime/vm/class_finalizer_test.cc View 1 2 chunks +9 lines, -4 lines 0 comments Download
M runtime/vm/code_generator_ia32.cc View 1 1 chunk +3 lines, -8 lines 0 comments Download
M runtime/vm/code_generator_ia32_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/code_generator_x64.cc View 1 1 chunk +3 lines, -8 lines 0 comments Download
M runtime/vm/code_generator_x64_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/code_patcher_ia32_test.cc View 1 3 chunks +6 lines, -7 lines 0 comments Download
M runtime/vm/code_patcher_x64_test.cc View 1 3 chunks +6 lines, -7 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M runtime/vm/object.h View 1 13 chunks +34 lines, -13 lines 0 comments Download
M runtime/vm/object.cc View 1 24 chunks +82 lines, -32 lines 0 comments Download
M runtime/vm/object_test.cc View 1 9 chunks +22 lines, -14 lines 0 comments Download
M runtime/vm/parser.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/parser.cc View 1 29 chunks +61 lines, -83 lines 0 comments Download
M runtime/vm/raw_object.h View 1 3 chunks +3 lines, -0 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 6 chunks +6 lines, -0 lines 0 comments Download
M runtime/vm/runtime_entry_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/scanner.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/scopes_test.cc View 1 1 chunk +10 lines, -8 lines 0 comments Download
M runtime/vm/unit_test.cc View 1 3 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
regis
8 years, 10 months ago (2012-02-04 00:54:46 UTC) #1
siva
LGTM once comment regarding default dummy token position value is made consistent. http://codereview.chromium.org/9325047/diff/1/runtime/vm/class_finalizer.h File runtime/vm/class_finalizer.h ...
8 years, 10 months ago (2012-02-06 18:13:08 UTC) #2
regis
Thanks! http://codereview.chromium.org/9325047/diff/1/runtime/vm/class_finalizer.h File runtime/vm/class_finalizer.h (right): http://codereview.chromium.org/9325047/diff/1/runtime/vm/class_finalizer.h#newcode46 runtime/vm/class_finalizer.h:46: const AbstractType& type); On 2012/02/06 18:13:08, asiva wrote: ...
8 years, 10 months ago (2012-02-06 19:43:16 UTC) #3
regis
8 years, 10 months ago (2012-02-06 20:07:48 UTC) #4
https://chromiumcodereview.appspot.com/9325047/diff/1/runtime/vm/dart_api_imp...
File runtime/vm/dart_api_impl_test.cc (right):

https://chromiumcodereview.appspot.com/9325047/diff/1/runtime/vm/dart_api_imp...
runtime/vm/dart_api_impl_test.cc:1498: "'dart:test-lib': Error: line 1 pos 38:
class 'NativeFields' is trying");
On 2012/02/06 19:43:16, regis wrote:
> On 2012/02/06 18:13:08, asiva wrote:
> > Why did you chop of the rest of the error regarding library not having
native
> > resolvers. I think that is a useful test which validates we are not finding
> > native resolvers.
> 
> The emitted error message is now much longer, since it contains the exact
> position as well as a snippet of the faulty code. I think that verifying only
a
> prefix of the error message is sufficient. Otherwise, I would have to copy
> multiple lines of output in this test. I can make the prefix longer if you
think
> it is not testing enough in its current form.

As discussed, I will not chop off the error message so short  as to test the
library url. I'll send you a cl.

Powered by Google App Engine
This is Rietveld 408576698