Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion test/short/comments/cascades.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ receiver
..cascade()

// comment
..cascade();
..cascade();
2 changes: 1 addition & 1 deletion test/short/comments/classes.unit
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,4 @@ class Foo< /* comment */ T> {}
class Foo< /* comment */TypeParameter> {}
<<<
class Foo< /* comment */
TypeParameter> {}
TypeParameter> {}
2 changes: 1 addition & 1 deletion test/short/comments/enums.unit
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ enum Foo {
a(// c
),
b()
}
}
2 changes: 1 addition & 1 deletion test/short/comments/expressions.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ y) = o;
y) = o;
<<<
(x && // c
y) = o;
y) = o;
2 changes: 1 addition & 1 deletion test/short/comments/extensions.unit
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,4 @@ extension A on B {}

/**
*/
extension A on B {}
extension A on B {}
2 changes: 1 addition & 1 deletion test/short/comments/functions.unit
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,4 @@ function(
@Other
@Third
longParameter2,
) {}
) {}
2 changes: 1 addition & 1 deletion test/short/comments/generic_methods.unit
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ void foo/*<S>*/(var /*=S*/ x) {
<<<
void foo/*<S>*/(var/*=S*/ x) {
var/*=S*/ y = x;
}
}
2 changes: 1 addition & 1 deletion test/short/comments/lists.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ var list = [
<<<
var list = [
// comment
];
];
2 changes: 1 addition & 1 deletion test/short/comments/maps.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ var map = {
<<<
var map = {
// comment
};
};
2 changes: 1 addition & 1 deletion test/short/comments/mixed.unit
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ class C {
//// not a doc comment
//commentedOut() {}
method() {}
}
}
2 changes: 1 addition & 1 deletion test/short/comments/patterns.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -371,4 +371,4 @@ if (obj
case const (expression // comment
)) {
;
}
}
2 changes: 1 addition & 1 deletion test/short/comments/records.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ var record = ( 1, // comment
var record = (
1, // comment
2
);
);
2 changes: 1 addition & 1 deletion test/short/comments/sets.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ var set = <int>{
<<<
var set = <int>{
// comment
};
};
2 changes: 1 addition & 1 deletion test/short/comments/statements.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ main() {
<<<
main() {
while (b) /*unreachable*/ {}
}
}
2 changes: 1 addition & 1 deletion test/short/comments/switch.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,4 @@ e = switch (n) {
>>> inline block comment
e = switch (n) { /* comment */ };
<<<
e = switch (n) {/* comment */};
e = switch (n) {/* comment */};
2 changes: 1 addition & 1 deletion test/short/comments/top_level.unit
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,4 @@ var b = 2;
import 'a' if (/**/a/**/./**/b/**/) 'c';
<<<
import 'a'
if (/**/ a /**/ . /**/ b /**/) 'c';
if (/**/ a /**/ . /**/ b /**/) 'c';
2 changes: 1 addition & 1 deletion test/short/comments/variables.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ var (x &&// c
y) = o;
<<<
var (x && // c
y) = o;
y) = o;
2 changes: 1 addition & 1 deletion test/short/regression/0000/0000.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ _log(
node.cases,
getConstants,
(_) => false, // No case is default.
buildSwitchCase);
buildSwitchCase);
2 changes: 1 addition & 1 deletion test/short/regression/0000/0005.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ return isLoopback(server.address.host) == isLoopback(url.host) ||
server.address.host == url.host;
<<<
return isLoopback(server.address.host) == isLoopback(url.host) ||
server.address.host == url.host;
server.address.host == url.host;
2 changes: 1 addition & 1 deletion test/short/regression/0000/0006.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ messageMentionsAsset(id) =>
<<<
messageMentionsAsset(id) =>
messageMentions(id.toString()) ||
messageMentions(path.fromUri(entry.assetId.path));
messageMentions(path.fromUri(entry.assetId.path));
2 changes: 1 addition & 1 deletion test/short/regression/0000/0009.unit
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ List<Set<TransformerId>> _stageTransformers(
Map<TransformerId, Set<TransformerId>> transformerDependencies) {}
<<<
List<Set<TransformerId>> _stageTransformers(
Map<TransformerId, Set<TransformerId>> transformerDependencies) {}
Map<TransformerId, Set<TransformerId>> transformerDependencies) {}
2 changes: 1 addition & 1 deletion test/short/regression/0000/0013.unit
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ class A {
that, wraps)
// comment
: field = value;
}
}
2 changes: 1 addition & 1 deletion test/short/regression/0000/0014.unit
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ class A {
'foo': 1,
'bar': 2,
};
}
}
2 changes: 1 addition & 1 deletion test/short/regression/0000/0019.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ return new _Concat(
var libname = _builtins.containsKey(package) ? _builtins[package] : package;
<<<
var libname =
_builtins.containsKey(package) ? _builtins[package] : package;
_builtins.containsKey(package) ? _builtins[package] : package;
2 changes: 1 addition & 1 deletion test/short/regression/0000/0021.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ var map = {
"}"
"}"
"}",
};
};
2 changes: 1 addition & 1 deletion test/short/regression/0000/0022.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ pluralThatFailsParsing(noOfThings) => Intl.plural(noOfThings,
callback: (value) => targetDir = value);
<<<
parser.addOption("output-dir",
defaultsTo: '.', callback: (value) => targetDir = value);
defaultsTo: '.', callback: (value) => targetDir = value);
2 changes: 1 addition & 1 deletion test/short/regression/0000/0023.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ return options.releaseMode &&
(id.extension == '.html' || id.extension == _DATA_EXTENSION) &&

// keep any entry points
!options.isHtmlEntryPoint(id);
!options.isHtmlEntryPoint(id);
2 changes: 1 addition & 1 deletion test/short/regression/0000/0025.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ return _parseHtml(content, id.path, logger,
from: builder.join('/', builder.dirname(sourceId.path)));
<<<
return builder.relative(builder.join('/', id.path),
from: builder.join('/', builder.dirname(sourceId.path)));
from: builder.join('/', builder.dirname(sourceId.path)));
2 changes: 1 addition & 1 deletion test/short/regression/0000/0026.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ experimentalBootstrap = document
<<<
experimentalBootstrap = document.querySelectorAll('link').any((link) =>
link.attributes['rel'] == 'import' &&
link.attributes['href'] == POLYMER_EXPERIMENTAL_HTML);
link.attributes['href'] == POLYMER_EXPERIMENTAL_HTML);
2 changes: 1 addition & 1 deletion test/short/regression/0000/0027.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
if (tag == 'style' ||
tag == 'script' &&
(type == null || type == TYPE_JS || type == TYPE_DART) ||
tag == 'link' && (rel == 'stylesheet' || rel == 'import')) {}
tag == 'link' && (rel == 'stylesheet' || rel == 'import')) {}
2 changes: 1 addition & 1 deletion test/short/regression/0000/0028.unit
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ bool _hasLibraryDirective(String code) =>
bool _hasLibraryDirective(String code) =>
parseDirectives(code, suppressErrors: true)
.directives
.any((d) => d is LibraryDirective);
.any((d) => d is LibraryDirective);
2 changes: 1 addition & 1 deletion test/short/regression/0000/0029.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ const _urlAttributes = const [
'poster', '_poster', // in video
'src', '_src', // in audio, embed, iframe, img, input, script,
// source, track,video
];
];
2 changes: 1 addition & 1 deletion test/short/regression/0000/0031.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ var German = const {
"HOUR_MINUTE_SECOND + ABBR_GENERIC_TZ":
"20:58:59 Vereinigte Staaten Zeit (Los Angeles)",
"HOUR_MINUTE + ABBR_SPECIFIC_TZ": "20:58 GMT-08:00"
};
};
2 changes: 1 addition & 1 deletion test/short/regression/0000/0033.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
1] == _zero && fractionLength > minimumFractionDigits + 1) {}
<<<
while (fractionCodes[fractionLength - 1] == _zero &&
fractionLength > minimumFractionDigits + 1) {}
fractionLength > minimumFractionDigits + 1) {}
2 changes: 1 addition & 1 deletion test/short/regression/0000/0036.unit
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ String prologue(String locale) => """
* DO NOT EDIT. This is code generated via pkg/intl/generate_localized.dart
* This is a library that provides messages for a $locale locale. All the
...
""";
""";
2 changes: 1 addition & 1 deletion test/short/regression/0000/0037.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ remote
sendReceive(sendPort, 'foo').then((msg) {
print('remote isolate handler received msg: $msg');
});
});
});
2 changes: 1 addition & 1 deletion test/short/regression/0000/0038.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -6553,4 +6553,4 @@ const hmac_sha1_inputs = const [
0xf8,
0x2b
],
];
];
2 changes: 1 addition & 1 deletion test/short/regression/0000/0039.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
..addRules(rules.values);
<<<
var serialization1 = new Serialization(format: format)
..addRules(rules.values);
..addRules(rules.values);
2 changes: 1 addition & 1 deletion test/short/regression/0000/0040.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
<<<
var s = new Serialization()
..addRuleFor(Various,
constructor: "Foo", constructorFields: ["d", "e"]);
constructor: "Foo", constructorFields: ["d", "e"]);
2 changes: 1 addition & 1 deletion test/short/regression/0000/0041.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
return new Serialization.blank()..namedObjects['Node'] =reflect(new Node('')).type;
<<<
return new Serialization.blank()
..namedObjects['Node'] = reflect(new Node('')).type;
..namedObjects['Node'] = reflect(new Node('')).type;
2 changes: 1 addition & 1 deletion test/short/regression/0000/0042.unit
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ import 'dart:io'
Bookings,
Calendar,
Dentist,
Elephant;
Elephant;
2 changes: 1 addition & 1 deletion test/short/regression/0000/0043.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ switchItUp() {
executeNowClosed();
break;
}
}
}
2 changes: 1 addition & 1 deletion test/short/regression/0000/0044.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ void main() {
var xxxxxxxYyyyyyyy = aaaabbb
? CCCCCCCCCCCC.mmmmmmmmmmmmmmmmmm1(arg00000000000)
: CCCCCCCCCCCC.mmmmmmmmmmmmmmmmmm(arg1111111111111);
}
}
2 changes: 1 addition & 1 deletion test/short/regression/0000/0045.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ foo() {
foo() {
if (xxxxxxxxxxxxxxxx || xxxxxxxxxxxxxxxxxxxxx)
return xxxxxxxxxxxxxx ? xxxxxxxxxxxxxxxxxxxx : xxxxxxxxxxxxxxxxxxxxxxxxxx;
}
}
2 changes: 1 addition & 1 deletion test/short/regression/0000/0046.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ foo() {
if (true)
// comment!
return 0;
}
}
2 changes: 1 addition & 1 deletion test/short/regression/0000/0047.unit
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ String say(String from, String msg,
[String device='carrier pigeon', String mood]) {}
<<<
String say(String from, String msg,
[String device = 'carrier pigeon', String mood]) {}
[String device = 'carrier pigeon', String mood]) {}
2 changes: 1 addition & 1 deletion test/short/regression/0000/0049.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ var hawaiianBeaches = {
'oahu': ['waikiki', 'kailua', 'waimanalo'],
'big island': ['wailea bay', 'pololu beach'],
'kauai': ['hanalei', 'poipu']
};
};
2 changes: 1 addition & 1 deletion test/short/regression/0000/0050.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
print('file is now closed');
}, onError: (e) {
print(e.toString());
});
});
2 changes: 1 addition & 1 deletion test/short/regression/0000/0054.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ httpClient.getUrl(url).then((HttpClientRequest request) {
return request.close();
}).then((HttpClientResponse response) {
body;
});
});
2 changes: 1 addition & 1 deletion test/short/regression/0000/0055.unit
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
<<<
bool isSdkDir(String dirname) => new File(
path.join(dirname, 'lib', '_internal', 'libraries.dart'))
.existsSync();
.existsSync();
2 changes: 1 addition & 1 deletion test/short/regression/0000/0056.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
_sources[uri] = src = new _MockSdkSource(uri, 'library dart.${uri.path};');
<<<
_sources[uri] =
src = new _MockSdkSource(uri, 'library dart.${uri.path};');
src = new _MockSdkSource(uri, 'library dart.${uri.path};');
2 changes: 1 addition & 1 deletion test/short/regression/0000/0057.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ embeddedPlural2(n) => Intl.message(
"${Intl.plural(n, zero: 'none', one: 'one', other: 'some')} plus some text.",
name: 'embeddedPlural2',
desc: 'An embedded plural',
args: [n]);
args: [n]);
2 changes: 1 addition & 1 deletion test/short/regression/0000/0058.unit
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ bool doStuff(String firstArgX,
String arg3foo,
Map<String, String> anotherArg,
bool yetAnotherArg: false,
bool tooManyArgs: true}) {}
bool tooManyArgs: true}) {}
2 changes: 1 addition & 1 deletion test/short/regression/0000/0060.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ var paths = new Directory(inputDir)
.listSync()
.where((f) => f is File)
.map((f) => f.path)
.where((p) => p.endsWith('.dart') && filePattern.hasMatch(p));
.where((p) => p.endsWith('.dart') && filePattern.hasMatch(p));
2 changes: 1 addition & 1 deletion test/short/regression/0000/0061.unit
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class Foo extends Bar {
// <snip>
}
}
}
}
2 changes: 1 addition & 1 deletion test/short/regression/0000/0066.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ void _queriesTest(HttpRequest request) {
<<<
void _queriesTest(HttpRequest request) {
var queries = _parseInt(request.uri.queryParameters['queries']).clamp(1, 500);
}
}
2 changes: 1 addition & 1 deletion test/short/regression/0000/0068.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@ var map = {
FIRSTDAYOFWEEK: 0,
WEEKENDRANGE: const [5, 6],
FIRSTWEEKCUTOFFDAY: 3),
};
};
Loading