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

Unified Diff: pkg/analysis_server/test/services/completion/dart/keyword_contributor_test.dart

Issue 2842213003: new TokenType and Keyword API (Closed)
Patch Set: rebase Created 3 years, 8 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/test/services/completion/dart/keyword_contributor_test.dart
diff --git a/pkg/analysis_server/test/services/completion/dart/keyword_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/keyword_contributor_test.dart
index c9462d3c2ee735630ca67c93776f684ce9f0ad97..9490d0ef3c69d1672316fddc548bbcbb41250339 100644
--- a/pkg/analysis_server/test/services/completion/dart/keyword_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/keyword_contributor_test.dart
@@ -220,7 +220,7 @@ class KeywordContributorTest extends DartCompletionContributorTest {
Set<String> expectedCompletions = new Set<String>();
Map<String, int> expectedOffsets = <String, int>{};
Set<String> actualCompletions = new Set<String>();
- expectedCompletions.addAll(expectedKeywords.map((k) => k.syntax));
+ expectedCompletions.addAll(expectedKeywords.map((k) => k.lexeme));
['import', 'export', 'part'].forEach((s) {
if (expectedCompletions.contains(s)) {
expectedCompletions.remove(s);
@@ -251,11 +251,11 @@ class KeywordContributorTest extends DartCompletionContributorTest {
}
for (CompletionSuggestion s in suggestions) {
if (s.kind == CompletionSuggestionKind.KEYWORD) {
- if (s.completion.startsWith(Keyword.IMPORT.syntax)) {
+ if (s.completion.startsWith(Keyword.IMPORT.lexeme)) {
int importRelevance = relevance;
expect(s.relevance, equals(importRelevance), reason: s.completion);
} else {
- if (s.completion == Keyword.RETHROW.syntax) {
+ if (s.completion == Keyword.RETHROW.lexeme) {
expect(s.relevance, equals(relevance - 1), reason: s.completion);
} else {
expect(s.relevance, equals(relevance), reason: s.completion);
« no previous file with comments | « pkg/analysis_server/lib/src/utilities/change_builder_dart.dart ('k') | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698