| 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 []);
|
| + });
|
| }
|
|
|