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

Side by Side Diff: pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart

Issue 2882003002: Fix some analysis issues. (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analysis_server/protocol/protocol_generated.dart'; 7 import 'package:analysis_server/protocol/protocol_generated.dart';
8 import 'package:analysis_server/src/ide_options.dart'; 8 import 'package:analysis_server/src/ide_options.dart';
9 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart'; 9 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart';
10 import 'package:analysis_server/src/services/completion/completion_core.dart'; 10 import 'package:analysis_server/src/services/completion/completion_core.dart';
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 } 573 }
574 // We use a delayed future to allow microtask events to finish. The 574 // We use a delayed future to allow microtask events to finish. The
575 // Future.value or Future() constructors use scheduleMicrotask themselves an d 575 // Future.value or Future() constructors use scheduleMicrotask themselves an d
576 // would therefore not wait for microtask callbacks that are scheduled after 576 // would therefore not wait for microtask callbacks that are scheduled after
577 // invoking this method. 577 // invoking this method.
578 return new Future.delayed( 578 return new Future.delayed(
579 Duration.ZERO, () => performAnalysis(times - 1, completer)); 579 Duration.ZERO, () => performAnalysis(times - 1, completer));
580 } 580 }
581 581
582 void resolveSource(String path, String content) { 582 void resolveSource(String path, String content) {
583 Source libSource = addSource(path, content); 583 addSource(path, content);
584 } 584 }
585 585
586 @override 586 @override
587 void setUp() { 587 void setUp() {
588 super.setUp(); 588 super.setUp();
589 contributor = createContributor(); 589 contributor = createContributor();
590 } 590 }
591 } 591 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698