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

Side by Side Diff: test/regression/121.stmt

Issue 1000513002: Tweak formatting rules. Fix #211. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Update changelog. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/src/source_visitor.dart ('k') | test/regression/211.unit » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 >>> (indent 6) 1 >>> (indent 6)
2 if (!firstArgument.isString) { 2 if (!firstArgument.isString) {
3 DartType type = defaultValue.getType(compiler.coreTypes); 3 DartType type = defaultValue.getType(compiler.coreTypes);
4 compiler.reportFatalError( 4 compiler.reportFatalError(
5 send.arguments.head, 5 send.arguments.head,
6 MessageKind.NOT_ASSIGNABLE, 6 MessageKind.NOT_ASSIGNABLE,
7 { 7 {
8 'fromType': type, 8 'fromType': type,
9 'toType': compiler.stringClass.rawType 9 'toType': compiler.stringClass.rawType
10 }); 10 });
11 return null; 11 return null;
12 } 12 }
13 <<< 13 <<<
14 if (!firstArgument.isString) { 14 if (!firstArgument.isString) {
15 DartType type = defaultValue.getType(compiler.coreTypes); 15 DartType type = defaultValue.getType(compiler.coreTypes);
16 compiler.reportFatalError(send.arguments.head, 16 compiler.reportFatalError(send.arguments.head,
17 MessageKind.NOT_ASSIGNABLE, 17 MessageKind.NOT_ASSIGNABLE, {
18 {'fromType': type, 'toType': compiler.stringClass.rawType}); 18 'fromType': type,
19 'toType': compiler.stringClass.rawType
20 });
19 return null; 21 return null;
20 } 22 }
OLDNEW
« no previous file with comments | « lib/src/source_visitor.dart ('k') | test/regression/211.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698