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

Unified Diff: pkg/analysis_server/lib/src/computer/computer_outline.dart

Issue 1398293002: Move the wire protocol support into the public API (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add missed files Created 5 years, 2 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
Index: pkg/analysis_server/lib/src/computer/computer_outline.dart
diff --git a/pkg/analysis_server/lib/src/computer/computer_outline.dart b/pkg/analysis_server/lib/src/computer/computer_outline.dart
index a052b13f2ab815327b865e8d01a35cf744b514ac..9b4c9b7170f0446995d3985ef016913b0656006c 100644
--- a/pkg/analysis_server/lib/src/computer/computer_outline.dart
+++ b/pkg/analysis_server/lib/src/computer/computer_outline.dart
@@ -4,8 +4,8 @@
library computer.outline;
+import 'package:analysis_server/plugin/protocol/protocol.dart';
import 'package:analysis_server/src/collections.dart';
-import 'package:analysis_server/src/protocol.dart';
import 'package:analyzer/src/generated/ast.dart';
import 'package:analyzer/src/generated/element.dart' as engine;
import 'package:analyzer/src/generated/source.dart';
@@ -346,13 +346,6 @@ class DartUnitOutlineComputer {
children: nullIfEmpty(unitContents));
}
- static String _getTypeParametersStr(TypeParameterList parameters) {
- if (parameters == null) {
- return null;
- }
- return parameters.toSource();
- }
-
Outline _newVariableOutline(String typeName, ElementKind kind,
VariableDeclaration variable, bool isStatic) {
SimpleIdentifier nameNode = variable.name;
@@ -374,6 +367,13 @@ class DartUnitOutlineComputer {
return outline;
}
+ static String _getTypeParametersStr(TypeParameterList parameters) {
+ if (parameters == null) {
+ return null;
+ }
+ return parameters.toSource();
+ }
+
/**
* Returns `true` if the given [element] is not `null` and deprecated.
*/

Powered by Google App Engine
This is Rietveld 408576698