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

Issue 9309061: Implement script tags. (Closed)

Created:
8 years, 10 months ago by ahe
Modified:
8 years, 10 months ago
CC:
reviews_dartlang.org, kasperl, floitsch
Visibility:
Public.

Description

Implement script tags. Committed: https://code.google.com/p/dart/source/detail?r=3909

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -28 lines) Patch
M dart/frog/leg/compiler.dart View 1 chunk +1 line, -0 lines 0 comments Download
M dart/frog/leg/elements/elements.dart View 2 chunks +12 lines, -0 lines 0 comments Download
M dart/frog/leg/resolver.dart View 2 chunks +10 lines, -2 lines 0 comments Download
M dart/frog/leg/scanner/scanner_task.dart View 2 chunks +36 lines, -5 lines 4 comments Download
M dart/frog/leg/scanner/scannerlib.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M dart/frog/leg/tree/nodes.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M dart/frog/leg/warnings.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M dart/tests/language/language-leg.status View 10 chunks +3 lines, -18 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ahe
8 years, 10 months ago (2012-02-02 19:28:48 UTC) #1
kasperl
LGTM. https://chromiumcodereview.appspot.com/9309061/diff/1/dart/frog/leg/scanner/scanner_task.dart File dart/frog/leg/scanner/scanner_task.dart (right): https://chromiumcodereview.appspot.com/9309061/diff/1/dart/frog/leg/scanner/scanner_task.dart#newcode72 dart/frog/leg/scanner/scanner_task.dart:72: newLibrary = true; Weird indentation.
8 years, 10 months ago (2012-02-03 11:51:37 UTC) #2
ngeoffray
LGTM!
8 years, 10 months ago (2012-02-03 12:12:24 UTC) #3
ahe
https://chromiumcodereview.appspot.com/9309061/diff/1/dart/frog/leg/scanner/scanner_task.dart File dart/frog/leg/scanner/scanner_task.dart (right): https://chromiumcodereview.appspot.com/9309061/diff/1/dart/frog/leg/scanner/scanner_task.dart#newcode72 dart/frog/leg/scanner/scanner_task.dart:72: newLibrary = true; On 2012/02/03 11:51:37, kasperl wrote: > ...
8 years, 10 months ago (2012-02-03 17:36:19 UTC) #4
kasperl
https://chromiumcodereview.appspot.com/9309061/diff/1/dart/frog/leg/scanner/scanner_task.dart File dart/frog/leg/scanner/scanner_task.dart (right): https://chromiumcodereview.appspot.com/9309061/diff/1/dart/frog/leg/scanner/scanner_task.dart#newcode72 dart/frog/leg/scanner/scanner_task.dart:72: newLibrary = true; On 2012/02/03 17:36:19, ahe wrote: > ...
8 years, 10 months ago (2012-02-05 07:58:28 UTC) #5
sra1
https://chromiumcodereview.appspot.com/9309061/diff/1/dart/frog/leg/scanner/scanner_task.dart File dart/frog/leg/scanner/scanner_task.dart (right): https://chromiumcodereview.appspot.com/9309061/diff/1/dart/frog/leg/scanner/scanner_task.dart#newcode72 dart/frog/leg/scanner/scanner_task.dart:72: newLibrary = true; On 2012/02/05 07:58:29, kasperl wrote: > ...
8 years, 10 months ago (2012-02-05 19:01:37 UTC) #6
ahe
On 2012/02/05 19:01:37, sra1 wrote: > https://chromiumcodereview.appspot.com/9309061/diff/1/dart/frog/leg/scanner/scanner_task.dart > File dart/frog/leg/scanner/scanner_task.dart (right): > > https://chromiumcodereview.appspot.com/9309061/diff/1/dart/frog/leg/scanner/scanner_task.dart#newcode72 > ...
8 years, 10 months ago (2012-02-05 19:20:58 UTC) #7
Lasse Reichstein Nielsen
8 years, 10 months ago (2012-02-05 21:08:10 UTC) #8
On 2012/02/05 19:01:37, sra1 wrote:
>
https://chromiumcodereview.appspot.com/9309061/diff/1/dart/frog/leg/scanner/s...
> File dart/frog/leg/scanner/scanner_task.dart (right):
> 
>
https://chromiumcodereview.appspot.com/9309061/diff/1/dart/frog/leg/scanner/s...
> dart/frog/leg/scanner/scanner_task.dart:72: newLibrary = true;
> On 2012/02/05 07:58:29, kasperl wrote:
> > On 2012/02/03 17:36:19, ahe wrote:
> > > On 2012/02/03 11:51:37, kasperl wrote:
> > > > Weird indentation.
> > > 
> > > This is what Dart mode in Emacs does. What would you like to see?
> > 
> > I'd much prefer something like this:
> > 
> >    xxx.yyy.zzz(..., () {
> >      hest;
> >      fisk;
> >    });
> > 
> > Looks more like regular control flow that way.
> 
> Emacs is closer to the style guide.
> 
> Style guide says "DO indent continued lines with four spaces."
> Since there are two levels of nesting here, ({, I think the body should be
> indented not less than +4.

The style guide continues:
"The one exception to this is function expressions used within larger
expressions, like being passed to methods. These are formatted like so:" (and
continues with somethine indented the way Kasper showed it).

And I also think it reads better. It's what I would do in JS too.
/L

Powered by Google App Engine
This is Rietveld 408576698