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

Issue 1773553002: Add source location to function declarations. (Closed)

Created:
4 years, 9 months ago by Johnni Winther
Modified:
4 years, 9 months ago
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add source location to function declarations. Temporarily adds source location to function declarations in the new source info system. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/583fd470d8dcc9a7b990483dd74789bfef486f92

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebased #

Patch Set 3 : Updated cf. comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -15 lines) Patch
M pkg/compiler/lib/src/io/position_information.dart View 1 2 5 chunks +31 lines, -14 lines 0 comments Download
M tests/compiler/dart2js/sourcemaps/js_tracer.dart View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 6 (2 generated)
Johnni Winther
4 years, 9 months ago (2016-03-07 11:12:24 UTC) #2
Siggi Cherem (dart-lang)
lgtm, thanks! https://codereview.chromium.org/1773553002/diff/1/pkg/compiler/lib/src/io/position_information.dart File pkg/compiler/lib/src/io/position_information.dart (right): https://codereview.chromium.org/1773553002/diff/1/pkg/compiler/lib/src/io/position_information.dart#newcode506 pkg/compiler/lib/src/io/position_information.dart:506: int codeLocation = offset.subexpressionOffset; consider moving this ...
4 years, 9 months ago (2016-03-07 18:12:49 UTC) #3
Johnni Winther
Committed patchset #3 (id:40001) manually as 583fd470d8dcc9a7b990483dd74789bfef486f92 (presubmit successful).
4 years, 9 months ago (2016-03-08 09:31:19 UTC) #5
Johnni Winther
4 years, 9 months ago (2016-03-08 09:39:23 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/1773553002/diff/1/pkg/compiler/lib/src/io/pos...
File pkg/compiler/lib/src/io/position_information.dart (right):

https://codereview.chromium.org/1773553002/diff/1/pkg/compiler/lib/src/io/pos...
pkg/compiler/lib/src/io/position_information.dart:506: int codeLocation =
offset.subexpressionOffset;
On 2016/03/07 18:12:49, Siggi Cherem (dart-lang) wrote:
> consider moving this out to the beginning of onStep?
> 
>   onStep(...) {
>     sourceInformation = ...
>     if (sourceInformation == null) return;
>     int codeLocation = ...;
>     if (codeLocation == null) return;
> 
> If not, maybe still do the null check before calculating the sourceLocation
> below? 

Done.

Powered by Google App Engine
This is Rietveld 408576698