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

Issue 11864010: Improve checking of patches. (Closed)

Created:
7 years, 11 months ago by Johnni Winther
Modified:
7 years, 10 months ago
Reviewers:
ahe, ngeoffray
CC:
reviews_dartlang.org, kasperl
Visibility:
Public.

Description

Improve checking of patches. Committed: https://code.google.com/p/dart/source/detail?r=18137

Patch Set 1 #

Total comments: 39

Patch Set 2 : Rebased #

Total comments: 1

Patch Set 3 : Rebased #

Total comments: 6

Patch Set 4 : Rebased #

Patch Set 5 : 'spannable' => 'node' #

Patch Set 6 : Rebased #

Patch Set 7 : Rebased (again) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+581 lines, -163 lines) Patch
M sdk/lib/_internal/compiler/implementation/patch_parser.dart View 1 2 3 4 5 6 4 chunks +213 lines, -129 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/warnings.dart View 1 2 2 chunks +81 lines, -25 lines 0 comments Download
M tests/compiler/dart2js/patch_test.dart View 1 2 3 10 chunks +286 lines, -8 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Johnni Winther
https://codereview.chromium.org/11864010/diff/1/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart File sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart (right): https://codereview.chromium.org/11864010/diff/1/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart#newcode19 sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart:19: SourceSpan spanFromSpannable(Spannable spannable, [Uri uri]); Slip from https://codereview.chromium.org/11854009/ https://codereview.chromium.org/11864010/diff/1/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart ...
7 years, 11 months ago (2013-01-11 11:39:09 UTC) #1
ngeoffray
LGTM, but I'd also wait for Peter's review. https://codereview.chromium.org/11864010/diff/1/sdk/lib/_internal/compiler/implementation/patch_parser.dart File sdk/lib/_internal/compiler/implementation/patch_parser.dart (right): https://codereview.chromium.org/11864010/diff/1/sdk/lib/_internal/compiler/implementation/patch_parser.dart#newcode196 sdk/lib/_internal/compiler/implementation/patch_parser.dart:196: if ...
7 years, 11 months ago (2013-01-11 11:46:12 UTC) #2
ahe
Private methods are bad. https://codereview.chromium.org/11864010/diff/1/sdk/lib/_internal/compiler/implementation/patch_parser.dart File sdk/lib/_internal/compiler/implementation/patch_parser.dart (right): https://codereview.chromium.org/11864010/diff/1/sdk/lib/_internal/compiler/implementation/patch_parser.dart#newcode196 sdk/lib/_internal/compiler/implementation/patch_parser.dart:196: if (!_isPatchElement(patch)) continue; This would ...
7 years, 11 months ago (2013-01-21 10:53:35 UTC) #3
Johnni Winther
On 2013/01/21 10:53:35, ahe wrote: > Private methods are bad. > > https://codereview.chromium.org/11864010/diff/1/sdk/lib/_internal/compiler/implementation/patch_parser.dart > File ...
7 years, 11 months ago (2013-01-22 14:48:00 UTC) #4
ahe
I think the problem is that the patch parser is written in a way that ...
7 years, 11 months ago (2013-01-23 10:30:32 UTC) #5
ahe
On 2013/01/23 10:30:32, ahe wrote: > I'll shortly upload a patch that demonstrates how to ...
7 years, 11 months ago (2013-01-23 10:55:23 UTC) #6
Johnni Winther
PTAL I don't find direct test of patchElement very useful since it bypasses the most ...
7 years, 10 months ago (2013-01-29 09:30:56 UTC) #7
Johnni Winther
Ping
7 years, 10 months ago (2013-02-04 08:55:03 UTC) #8
ngeoffray
https://codereview.chromium.org/11864010/diff/10001/sdk/lib/_internal/compiler/implementation/patch_parser.dart File sdk/lib/_internal/compiler/implementation/patch_parser.dart (right): https://codereview.chromium.org/11864010/diff/10001/sdk/lib/_internal/compiler/implementation/patch_parser.dart#newcode592 sdk/lib/_internal/compiler/implementation/patch_parser.dart:592: // TODO(lrn): More checks needed if we introduce metadata ...
7 years, 10 months ago (2013-02-04 09:03:46 UTC) #9
ahe
LGTM! https://codereview.chromium.org/11864010/diff/15001/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart File sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart (left): https://codereview.chromium.org/11864010/diff/15001/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart#oldcode19 sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart:19: SourceSpan spanFromSpannable(Spannable node, [Uri uri]); I don't understand ...
7 years, 10 months ago (2013-02-04 13:20:22 UTC) #10
Johnni Winther
https://codereview.chromium.org/11864010/diff/15001/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart File sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart (left): https://codereview.chromium.org/11864010/diff/15001/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart#oldcode19 sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart:19: SourceSpan spanFromSpannable(Spannable node, [Uri uri]); On 2013/02/04 13:20:22, ahe ...
7 years, 10 months ago (2013-02-05 08:48:42 UTC) #11
ahe
https://codereview.chromium.org/11864010/diff/15001/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart File sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart (left): https://codereview.chromium.org/11864010/diff/15001/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart#oldcode19 sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart:19: SourceSpan spanFromSpannable(Spannable node, [Uri uri]); On 2013/02/05 08:48:42, Johnni ...
7 years, 10 months ago (2013-02-05 08:51:19 UTC) #12
Johnni Winther
https://codereview.chromium.org/11864010/diff/15001/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart File sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart (left): https://codereview.chromium.org/11864010/diff/15001/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart#oldcode19 sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart:19: SourceSpan spanFromSpannable(Spannable node, [Uri uri]); On 2013/02/05 08:51:19, ahe ...
7 years, 10 months ago (2013-02-05 12:03:04 UTC) #13
Johnni Winther
https://codereview.chromium.org/11864010/diff/15001/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart File sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart (left): https://codereview.chromium.org/11864010/diff/15001/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart#oldcode19 sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart:19: SourceSpan spanFromSpannable(Spannable node, [Uri uri]); On 2013/02/05 08:51:19, ahe ...
7 years, 10 months ago (2013-02-05 13:24:12 UTC) #14
ahe
7 years, 10 months ago (2013-02-05 13:28:41 UTC) #15
https://codereview.chromium.org/11864010/diff/15001/sdk/lib/_internal/compile...
File sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart (left):

https://codereview.chromium.org/11864010/diff/15001/sdk/lib/_internal/compile...
sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart:19:
SourceSpan spanFromSpannable(Spannable node, [Uri uri]);
On 2013/02/05 13:24:12, Johnni Winther wrote:
> On 2013/02/05 08:51:19, ahe wrote:
> > On 2013/02/05 08:48:42, Johnni Winther wrote:
> > > On 2013/02/04 13:20:22, ahe wrote:
> > > > I don't understand why you're renaming this parameter.
> > > 
> > > I think this change comes from a rebase. I do think that calling it
> > 'spannable'
> > > instead of the archaic 'node' is better, though.
> > 
> > I disagree. I don't know why you're calling the name "node" archaic. It was
> not
> > an accident I chose that name, and I have used it in other situations since
> > then.
> 
> So what is the good reason for still calling it 'node'?

I don't know if it is a particular good reason, but I dislike made up words that
ends with "-able". If you think the word "node" is confusing, I think you should
change it, but remember these other places:

sdk/lib/_internal/compiler/implementation/compiler.dart:  SourceSpan
spanFromSpannable(Spannable node, [Uri uri]) {
sdk/lib/_internal/compiler/implementation/compiler.dart:  void
reportErrorCode(Spannable node, MessageKind errorCode,
sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart:  SourceSpan
spanFromSpannable(Spannable node, [Uri uri]);
sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart:  void
reportErrorCode(Spannable node, MessageKind errorCode, [Map arguments]);
sdk/lib/_internal/compiler/implementation/util/util.dart:  final Spannable node;

Powered by Google App Engine
This is Rietveld 408576698