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

Issue 10582038: Add null check. (Closed)

Created:
8 years, 6 months ago by Anton Muhin
Modified:
8 years, 6 months ago
Reviewers:
ahe, Roman
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M lib/compiler/implementation/tree/unparser.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/unparser_test.dart View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Anton Muhin
8 years, 6 months ago (2012-06-20 19:20:45 UTC) #1
ahe
lgtm https://chromiumcodereview.appspot.com/10582038/diff/1/lib/compiler/implementation/tree/unparser.dart File lib/compiler/implementation/tree/unparser.dart (right): https://chromiumcodereview.appspot.com/10582038/diff/1/lib/compiler/implementation/tree/unparser.dart#newcode93 lib/compiler/implementation/tree/unparser.dart:93: Send send = node.name !== null ? node.name.asSend() ...
8 years, 6 months ago (2012-06-20 19:25:45 UTC) #2
Anton Muhin
8 years, 6 months ago (2012-06-20 19:34:49 UTC) #3
https://chromiumcodereview.appspot.com/10582038/diff/1/lib/compiler/implement...
File lib/compiler/implementation/tree/unparser.dart (right):

https://chromiumcodereview.appspot.com/10582038/diff/1/lib/compiler/implement...
lib/compiler/implementation/tree/unparser.dart:93: Send send = node.name !==
null ? node.name.asSend() : null;
On 2012/06/20 19:25:45, ahe wrote:
> Perhaps you should change this to use:
> 
> if (node.name is Send) {
>   ...
> }
> 
> Also, indentation seems weird. 

Done.  What's wrong w/ indentation?

Powered by Google App Engine
This is Rietveld 408576698