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

Side by Side Diff: pkg/analysis_server/lib/src/plugin/result_merger.dart

Issue 2880443006: Generate common types into a separate library (Closed)
Patch Set: add missed files 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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:collection'; 5 import 'dart:collection';
6 6
7 import 'package:analysis_server/protocol/protocol_generated.dart' 7 import 'package:analysis_server/protocol/protocol_generated.dart'
8 hide AnalysisErrorFixes; 8 hide AnalysisErrorFixes;
9 import 'package:analyzer_plugin/protocol/protocol_common.dart' as plugin;
9 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin; 10 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin;
10 import 'package:meta/meta.dart'; 11 import 'package:meta/meta.dart';
11 12
12 /** 13 /**
13 * An object used to merge partial lists of results that were contributed by 14 * An object used to merge partial lists of results that were contributed by
14 * plugins. 15 * plugins.
15 * 16 *
16 * All of the methods in this class assume that the contributions from the 17 * All of the methods in this class assume that the contributions from the
17 * analysis server are the first partial result in the list of partial results 18 * analysis server are the first partial result in the list of partial results
18 * to be merged. 19 * to be merged.
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 if (leftEnd < rightStart || leftStart > rightEnd) { 819 if (leftEnd < rightStart || leftStart > rightEnd) {
819 return false; 820 return false;
820 } 821 }
821 if (!allowNesting) { 822 if (!allowNesting) {
822 return true; 823 return true;
823 } 824 }
824 return !((leftStart <= rightStart && rightEnd <= leftEnd) || 825 return !((leftStart <= rightStart && rightEnd <= leftEnd) ||
825 (rightStart <= leftStart && leftEnd <= rightEnd)); 826 (rightStart <= leftStart && leftEnd <= rightEnd));
826 } 827 }
827 } 828 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/plugin/result_converter.dart ('k') | pkg/analysis_server/test/analysis/update_content_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698