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

Issue 11938028: Experimental analyzer front-end baby-steps. (Closed)

Created:
7 years, 11 months ago by pquitslund
Modified:
7 years, 11 months ago
CC:
kasperl
Visibility:
Public.

Description

Experimental analyzer front-end baby-steps. Notably: * basic package layout, * commandline parsing, and * a few tests Much more to come! :) Committed: https://code.google.com/p/dart/source/detail?r=17414

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 26
Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -0 lines) Patch
A pkg/analyzer-experimental/bin/analyzer.dart View 1 chunk +46 lines, -0 lines 6 comments Download
A pkg/analyzer-experimental/lib/analyzer.dart View 1 chunk +4 lines, -0 lines 0 comments Download
A pkg/analyzer-experimental/lib/options.dart View 1 1 chunk +196 lines, -0 lines 20 comments Download
A pkg/analyzer-experimental/pubspec.yaml View 1 chunk +8 lines, -0 lines 0 comments Download
A pkg/analyzer-experimental/test/options_test.dart View 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
pquitslund
https://codereview.chromium.org/11938028/diff/1/pkg/analyzer-experimental/lib/analyzer.dart File pkg/analyzer-experimental/lib/analyzer.dart (right): https://codereview.chromium.org/11938028/diff/1/pkg/analyzer-experimental/lib/analyzer.dart#newcode4 pkg/analyzer-experimental/lib/analyzer.dart:4: Just a place-holder for now.
7 years, 11 months ago (2013-01-18 20:56:04 UTC) #1
pquitslund
7 years, 11 months ago (2013-01-18 20:56:35 UTC) #2
pquitslund
7 years, 11 months ago (2013-01-18 21:04:10 UTC) #3
Brian Wilkerson
LGTM https://codereview.chromium.org/11938028/diff/1/pkg/analyzer-experimental/lib/options.dart File pkg/analyzer-experimental/lib/options.dart (right): https://codereview.chromium.org/11938028/diff/1/pkg/analyzer-experimental/lib/options.dart#newcode96 pkg/analyzer-experimental/lib/options.dart:96: '<libraries to analyze...]'); Was the '<' suppose to ...
7 years, 11 months ago (2013-01-18 21:14:33 UTC) #4
scheglov
LGTM
7 years, 11 months ago (2013-01-18 21:19:26 UTC) #5
pquitslund
https://codereview.chromium.org/11938028/diff/1/pkg/analyzer-experimental/lib/options.dart File pkg/analyzer-experimental/lib/options.dart (right): https://codereview.chromium.org/11938028/diff/1/pkg/analyzer-experimental/lib/options.dart#newcode96 pkg/analyzer-experimental/lib/options.dart:96: '<libraries to analyze...]'); On 2013/01/18 21:14:33, Brian Wilkerson wrote: ...
7 years, 11 months ago (2013-01-18 21:22:19 UTC) #6
danrubel
lgtm
7 years, 11 months ago (2013-01-18 21:24:28 UTC) #7
Bob Nystrom
Random feedback to do with as you will. https://codereview.chromium.org/11938028/diff/8001/pkg/analyzer-experimental/bin/analyzer.dart File pkg/analyzer-experimental/bin/analyzer.dart (right): https://codereview.chromium.org/11938028/diff/8001/pkg/analyzer-experimental/bin/analyzer.dart#newcode7 pkg/analyzer-experimental/bin/analyzer.dart:7: /** ...
7 years, 11 months ago (2013-01-18 22:25:21 UTC) #8
pquitslund
Awesome feedback. Thanks! You just might make a darter out of me yet! :) https://codereview.chromium.org/11938028/diff/8001/pkg/analyzer-experimental/bin/analyzer.dart ...
7 years, 11 months ago (2013-01-22 18:31:53 UTC) #9
Bob Nystrom
https://codereview.chromium.org/11938028/diff/8001/pkg/analyzer-experimental/lib/options.dart File pkg/analyzer-experimental/lib/options.dart (right): https://codereview.chromium.org/11938028/diff/8001/pkg/analyzer-experimental/lib/options.dart#newcode106 pkg/analyzer-experimental/lib/options.dart:106: * options/flags, this class can be replaced with a ...
7 years, 11 months ago (2013-01-22 19:16:36 UTC) #10
pquitslund
7 years, 11 months ago (2013-01-22 23:30:01 UTC) #11
Message was sent while issue was closed.
Thanks for the continued feedback!

https://codereview.chromium.org/11938028/diff/8001/pkg/analyzer-experimental/...
File pkg/analyzer-experimental/lib/options.dart (right):

https://codereview.chromium.org/11938028/diff/8001/pkg/analyzer-experimental/...
pkg/analyzer-experimental/lib/options.dart:168: var filtered = <String>[];
On 2013/01/22 19:16:36, Bob Nystrom wrote:
> On 2013/01/22 18:31:53, pquitslund wrote:
> > On 2013/01/18 22:25:22, Bob Nystrom wrote:
> > > return args.where((arg) => !arg.startsWith('--') ||
> > >                            _knownFlags.contains(arg.substring(2));
> > > 
> > > :)
> > 
> > Cheeky! :)  But I think this is missing the parameter eating part.  That is,
I
> > think this should work for options as well.  Or?  IOW, seeing this
> > 
> >  --ignore me --but not any of me 
> > 
> > should yield ['--but', 'not', 'any', 'of', 'me'] assuming 'but' is an
> understood
> > option.
> > 
> > What do you think?
> 
> I believe this should do the right thing here. If it's not an option, (i.e.
> doesn't start with "--") it will always get included in the result since
> !args.startsWith('--') will be true.
> 
> If it is an option, it will only be included in the result set if it's a known
> one.

Well fine.  Are you ALWAYS right? ;)

Follow-up here: https://codereview.chromium.org/12049028/

Powered by Google App Engine
This is Rietveld 408576698