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

Unified Diff: test/regression/other/analysis_server.unit

Issue 1252323003: Allow arguments before and after block-formatted functions. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Update pubspec and changelog. Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/regression/0300/0369.stmt ('k') | test/splitting/arguments.stmt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/regression/other/analysis_server.unit
diff --git a/test/regression/other/analysis_server.unit b/test/regression/other/analysis_server.unit
index decf2364e352a5167931932fcc67b0e5cc8d2e90..9e662a71f7955ae0c2f74ff4d5708b930e725513 100644
--- a/test/regression/other/analysis_server.unit
+++ b/test/regression/other/analysis_server.unit
@@ -186,4 +186,64 @@ final ListResultDescriptor<AnalysisError> HINTS =
toHtmlVisitor.write(impliedType.humanReadableName);
});
}));
+ }
+>>> (indent 2)
+ main() {
+ manager.setRoots(<String>[
+ projPath
+ ], <String>[], <String, String>{});
+ }
+<<<
+ main() {
+ manager.setRoots(<String>[projPath], <String>[], <String, String>{});
+ }
+>>> (indent 2)
+ main() {
+ server.setAnalysisRoots('0', [
+ '/foo',
+ '/bar'
+ ], [], {});
+ return pumpEventQueue(40).then((_) {
+ expect(server.statusAnalyzing, isFalse);
+ });
+ }
+<<<
+ main() {
+ server.setAnalysisRoots('0', ['/foo', '/bar'], [], {});
+ return pumpEventQueue(40).then((_) {
+ expect(server.statusAnalyzing, isFalse);
+ });
+ }
+>>> (indent 2)
+ main() {
+ return withBuilder(new DartIrBuilder(
+ DART_CONSTANT_SYSTEM,
+ element,
+ // TODO(johnniwinther): Support closure variables.
+ new Set<dart2js.Local>()), () {
+ irBuilder.buildFunctionHeader(
+ constructor.parameters.map(converter.convertElement));
+ // Visit the body directly to avoid processing the signature as
+ // expressions.
+ // Call to allow for `body == null` in case of synthesized constructors.
+ build(body);
+ return irBuilder.makeConstructorDefinition(const [], const []);
+ });
+ }
+<<<
+ main() {
+ return withBuilder(
+ new DartIrBuilder(
+ DART_CONSTANT_SYSTEM,
+ element,
+ // TODO(johnniwinther): Support closure variables.
+ new Set<dart2js.Local>()), () {
+ irBuilder.buildFunctionHeader(
+ constructor.parameters.map(converter.convertElement));
+ // Visit the body directly to avoid processing the signature as
+ // expressions.
+ // Call to allow for `body == null` in case of synthesized constructors.
+ build(body);
+ return irBuilder.makeConstructorDefinition(const [], const []);
+ });
}
« no previous file with comments | « test/regression/0300/0369.stmt ('k') | test/splitting/arguments.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698