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

Side by Side Diff: pkg/analysis_server/lib/src/operation/operation_analysis.dart

Issue 2342733002: Break up another large file (Closed)
Patch Set: fixed floating comment Created 4 years, 3 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 library operation.analysis; 5 library operation.analysis;
6 6
7 import 'package:analysis_server/src/analysis_server.dart'; 7 import 'package:analysis_server/src/analysis_server.dart';
8 import 'package:analysis_server/src/computer/computer_highlights.dart'; 8 import 'package:analysis_server/src/computer/computer_highlights.dart';
9 import 'package:analysis_server/src/computer/computer_highlights2.dart'; 9 import 'package:analysis_server/src/computer/computer_highlights2.dart';
10 import 'package:analysis_server/src/computer/computer_outline.dart'; 10 import 'package:analysis_server/src/computer/computer_outline.dart';
11 import 'package:analysis_server/src/computer/computer_overrides.dart'; 11 import 'package:analysis_server/src/computer/computer_overrides.dart';
12 import 'package:analysis_server/src/domains/analysis/implemented_dart.dart'; 12 import 'package:analysis_server/src/domains/analysis/implemented_dart.dart';
13 import 'package:analysis_server/src/domains/analysis/navigation.dart'; 13 import 'package:analysis_server/src/domains/analysis/navigation.dart';
14 import 'package:analysis_server/src/domains/analysis/occurrences.dart'; 14 import 'package:analysis_server/src/domains/analysis/occurrences.dart';
15 import 'package:analysis_server/src/operation/operation.dart'; 15 import 'package:analysis_server/src/operation/operation.dart';
16 import 'package:analysis_server/src/protocol_server.dart' as protocol; 16 import 'package:analysis_server/src/protocol_server.dart' as protocol;
17 import 'package:analysis_server/src/services/dependencies/library_dependencies.d art'; 17 import 'package:analysis_server/src/services/dependencies/library_dependencies.d art';
18 import 'package:analysis_server/src/services/search/search_engine.dart'; 18 import 'package:analysis_server/src/services/search/search_engine.dart';
19 import 'package:analyzer/dart/ast/ast.dart'; 19 import 'package:analyzer/dart/ast/ast.dart';
20 import 'package:analyzer/dart/element/element.dart'; 20 import 'package:analyzer/dart/element/element.dart';
21 import 'package:analyzer/error/error.dart';
21 import 'package:analyzer/src/generated/engine.dart'; 22 import 'package:analyzer/src/generated/engine.dart';
22 import 'package:analyzer/src/generated/error.dart';
23 import 'package:analyzer/src/generated/source.dart'; 23 import 'package:analyzer/src/generated/source.dart';
24 24
25 /** 25 /**
26 * Run the given function [f] with the given [context] made active. 26 * Run the given function [f] with the given [context] made active.
27 * Return the result of [f] invocation. 27 * Return the result of [f] invocation.
28 */ 28 */
29 runWithActiveContext(AnalysisContext context, f()) { 29 runWithActiveContext(AnalysisContext context, f()) {
30 if (context is InternalAnalysisContext && !context.isActive) { 30 if (context is InternalAnalysisContext && !context.isActive) {
31 context.isActive = true; 31 context.isActive = true;
32 try { 32 try {
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 abstract class _SingleFileOperation extends SourceSensitiveOperation { 529 abstract class _SingleFileOperation extends SourceSensitiveOperation {
530 final String file; 530 final String file;
531 531
532 _SingleFileOperation(AnalysisContext context, this.file) : super(context); 532 _SingleFileOperation(AnalysisContext context, this.file) : super(context);
533 533
534 @override 534 @override
535 bool shouldBeDiscardedOnSourceChange(Source source) { 535 bool shouldBeDiscardedOnSourceChange(Source source) {
536 return source.fullName == file; 536 return source.fullName == file;
537 } 537 }
538 } 538 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/edit/edit_domain.dart ('k') | pkg/analysis_server/lib/src/protocol_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698