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

Side by Side Diff: pkg/analysis_server/test/protocol_server_test.dart

Issue 1519283003: Move public API for elements into a public location (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/dart/element/element.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 test.computer.element; 5 library test.computer.element;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 8
9 import 'package:analysis_server/src/constants.dart'; 9 import 'package:analysis_server/src/constants.dart';
10 import 'package:analysis_server/src/protocol_server.dart'; 10 import 'package:analysis_server/src/protocol_server.dart';
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 new EnumTester<engine.ErrorType, AnalysisErrorType>().run( 122 new EnumTester<engine.ErrorType, AnalysisErrorType>().run(
123 (engine.ErrorType engineErrorType) => 123 (engine.ErrorType engineErrorType) =>
124 new AnalysisErrorType(engineErrorType.name)); 124 new AnalysisErrorType(engineErrorType.name));
125 } 125 }
126 126
127 void test_ElementKind() { 127 void test_ElementKind() {
128 new EnumTester<engine.ElementKind, ElementKind>() 128 new EnumTester<engine.ElementKind, ElementKind>()
129 .run(convertElementKind, exceptions: { 129 .run(convertElementKind, exceptions: {
130 // TODO(paulberry): do any of the exceptions below constitute bugs? 130 // TODO(paulberry): do any of the exceptions below constitute bugs?
131 engine.ElementKind.DYNAMIC: ElementKind.UNKNOWN, 131 engine.ElementKind.DYNAMIC: ElementKind.UNKNOWN,
132 engine.ElementKind.EMBEDDED_HTML_SCRIPT: ElementKind.UNKNOWN,
133 engine.ElementKind.ERROR: ElementKind.UNKNOWN, 132 engine.ElementKind.ERROR: ElementKind.UNKNOWN,
134 engine.ElementKind.EXPORT: ElementKind.UNKNOWN, 133 engine.ElementKind.EXPORT: ElementKind.UNKNOWN,
135 engine.ElementKind.EXTERNAL_HTML_SCRIPT: ElementKind.UNKNOWN,
136 engine.ElementKind.HTML: ElementKind.UNKNOWN,
137 engine.ElementKind.IMPORT: ElementKind.UNKNOWN, 134 engine.ElementKind.IMPORT: ElementKind.UNKNOWN,
138 engine.ElementKind.NAME: ElementKind.UNKNOWN, 135 engine.ElementKind.NAME: ElementKind.UNKNOWN,
139 engine.ElementKind.UNIVERSE: ElementKind.UNKNOWN 136 engine.ElementKind.UNIVERSE: ElementKind.UNKNOWN
140 }); 137 });
141 } 138 }
142 139
143 void test_SearchResultKind() { 140 void test_SearchResultKind() {
144 // TODO(paulberry): why does the MatchKind class exist at all? Can't we 141 // TODO(paulberry): why does the MatchKind class exist at all? Can't we
145 // use SearchResultKind inside the analysis server? 142 // use SearchResultKind inside the analysis server?
146 new EnumTester<MatchKind, SearchResultKind>() 143 new EnumTester<MatchKind, SearchResultKind>()
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 ApiEnum apiValue = convert(engineValue); 181 ApiEnum apiValue = convert(engineValue);
185 expect(apiValue, equals(expectedResult)); 182 expect(apiValue, equals(expectedResult));
186 } 183 }
187 } else { 184 } else {
188 ApiEnum apiValue = convert(engineValue); 185 ApiEnum apiValue = convert(engineValue);
189 expect(apiValue.name, equals(enumName)); 186 expect(apiValue.name, equals(enumName));
190 } 187 }
191 }); 188 });
192 } 189 }
193 } 190 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698