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

Unified Diff: pkg/analyzer/lib/src/dart/element/type.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
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | pkg/analyzer/lib/src/fasta/token_utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/element/type.dart
diff --git a/pkg/analyzer/lib/src/dart/element/type.dart b/pkg/analyzer/lib/src/dart/element/type.dart
index 2189a20855f32b5ae57f0d5580cfd090b98d097e..5462ac6010094e38988f3a7404b4ceb26d12e95f 100644
--- a/pkg/analyzer/lib/src/dart/element/type.dart
+++ b/pkg/analyzer/lib/src/dart/element/type.dart
@@ -283,14 +283,14 @@ class DynamicTypeImpl extends TypeImpl {
* Prevent the creation of instances of this class.
*/
DynamicTypeImpl._()
- : super(new DynamicElementImpl(), Keyword.DYNAMIC.syntax) {
+ : super(new DynamicElementImpl(), Keyword.DYNAMIC.lexeme) {
(element as DynamicElementImpl).type = this;
}
/**
* Constructor used by [CircularTypeImpl].
*/
- DynamicTypeImpl._circular() : super(instance.element, Keyword.DYNAMIC.syntax);
+ DynamicTypeImpl._circular() : super(instance.element, Keyword.DYNAMIC.lexeme);
@override
int get hashCode => 1;
@@ -2842,7 +2842,7 @@ class UndefinedTypeImpl extends TypeImpl {
* Prevent the creation of instances of this class.
*/
UndefinedTypeImpl._()
- : super(DynamicElementImpl.instance, Keyword.DYNAMIC.syntax);
+ : super(DynamicElementImpl.instance, Keyword.DYNAMIC.lexeme);
@override
int get hashCode => 1;
@@ -2911,7 +2911,7 @@ class VoidTypeImpl extends TypeImpl implements VoidType {
/**
* Prevent the creation of instances of this class.
*/
- VoidTypeImpl._() : super(null, Keyword.VOID.syntax);
+ VoidTypeImpl._() : super(null, Keyword.VOID.lexeme);
@override
int get hashCode => 2;
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | pkg/analyzer/lib/src/fasta/token_utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698