@@ -202,13 +202,19 @@ class TypeEntity extends Entity, @typeobject { }
202
202
class TypeParamParentEntity extends Entity , @typeparamparentobject { }
203
203
204
204
/** A named type which has a declaration. */
205
- class DeclaredType extends TypeEntity , DeclaredEntity , TypeParamParentEntity , @decltypeobject {
205
+ class DeclaredTypeEntity extends TypeEntity , DeclaredEntity , TypeParamParentEntity , @decltypeobject {
206
206
/** Gets the declaration specifier declaring this type. */
207
207
TypeSpec getSpec ( ) { result .getNameExpr ( ) = this .getDeclaration ( ) }
208
208
}
209
209
210
+ /** DEPRECATED: Use `DeclaredTypeEntity` instead. */
211
+ deprecated class DeclaredType = DeclaredTypeEntity ;
212
+
210
213
/** A built-in type. */
211
- class BuiltinType extends TypeEntity , BuiltinEntity , @builtintypeobject { }
214
+ class BuiltinTypeEntity extends TypeEntity , BuiltinEntity , @builtintypeobject { }
215
+
216
+ /** DEPRECATED: Use `BuiltinTypeEntity` instead. */
217
+ deprecated class BuiltinType = BuiltinTypeEntity ;
212
218
213
219
/** A built-in or declared constant, variable, field, method or function. */
214
220
class ValueEntity extends Entity , @valueobject {
@@ -754,64 +760,64 @@ private predicate builtinFunction(
754
760
module Builtin {
755
761
// built-in types
756
762
/** Gets the built-in type `bool`. */
757
- BuiltinType bool ( ) { result .getName ( ) = "bool" }
763
+ BuiltinTypeEntity bool ( ) { result .getName ( ) = "bool" }
758
764
759
765
/** Gets the built-in type `byte`. */
760
- BuiltinType byte ( ) { result .getName ( ) = "byte" }
766
+ BuiltinTypeEntity byte ( ) { result .getName ( ) = "byte" }
761
767
762
768
/** Gets the built-in type `complex64`. */
763
- BuiltinType complex64 ( ) { result .getName ( ) = "complex64" }
769
+ BuiltinTypeEntity complex64 ( ) { result .getName ( ) = "complex64" }
764
770
765
771
/** Gets the built-in type `complex128`. */
766
- BuiltinType complex128 ( ) { result .getName ( ) = "complex128" }
772
+ BuiltinTypeEntity complex128 ( ) { result .getName ( ) = "complex128" }
767
773
768
774
/** Gets the built-in type `error`. */
769
- BuiltinType error ( ) { result .getName ( ) = "error" }
775
+ BuiltinTypeEntity error ( ) { result .getName ( ) = "error" }
770
776
771
777
/** Gets the built-in type `float32`. */
772
- BuiltinType float32 ( ) { result .getName ( ) = "float32" }
778
+ BuiltinTypeEntity float32 ( ) { result .getName ( ) = "float32" }
773
779
774
780
/** Gets the built-in type `float64`. */
775
- BuiltinType float64 ( ) { result .getName ( ) = "float64" }
781
+ BuiltinTypeEntity float64 ( ) { result .getName ( ) = "float64" }
776
782
777
783
/** Gets the built-in type `int`. */
778
- BuiltinType int_ ( ) { result .getName ( ) = "int" }
784
+ BuiltinTypeEntity int_ ( ) { result .getName ( ) = "int" }
779
785
780
786
/** Gets the built-in type `int8`. */
781
- BuiltinType int8 ( ) { result .getName ( ) = "int8" }
787
+ BuiltinTypeEntity int8 ( ) { result .getName ( ) = "int8" }
782
788
783
789
/** Gets the built-in type `int16`. */
784
- BuiltinType int16 ( ) { result .getName ( ) = "int16" }
790
+ BuiltinTypeEntity int16 ( ) { result .getName ( ) = "int16" }
785
791
786
792
/** Gets the built-in type `int32`. */
787
- BuiltinType int32 ( ) { result .getName ( ) = "int32" }
793
+ BuiltinTypeEntity int32 ( ) { result .getName ( ) = "int32" }
788
794
789
795
/** Gets the built-in type `int64`. */
790
- BuiltinType int64 ( ) { result .getName ( ) = "int64" }
796
+ BuiltinTypeEntity int64 ( ) { result .getName ( ) = "int64" }
791
797
792
798
/** Gets the built-in type `rune`. */
793
- BuiltinType rune ( ) { result .getName ( ) = "rune" }
799
+ BuiltinTypeEntity rune ( ) { result .getName ( ) = "rune" }
794
800
795
801
/** Gets the built-in type `string`. */
796
- BuiltinType string_ ( ) { result .getName ( ) = "string" }
802
+ BuiltinTypeEntity string_ ( ) { result .getName ( ) = "string" }
797
803
798
804
/** Gets the built-in type `uint`. */
799
- BuiltinType uint ( ) { result .getName ( ) = "uint" }
805
+ BuiltinTypeEntity uint ( ) { result .getName ( ) = "uint" }
800
806
801
807
/** Gets the built-in type `uint8`. */
802
- BuiltinType uint8 ( ) { result .getName ( ) = "uint8" }
808
+ BuiltinTypeEntity uint8 ( ) { result .getName ( ) = "uint8" }
803
809
804
810
/** Gets the built-in type `uint16`. */
805
- BuiltinType uint16 ( ) { result .getName ( ) = "uint16" }
811
+ BuiltinTypeEntity uint16 ( ) { result .getName ( ) = "uint16" }
806
812
807
813
/** Gets the built-in type `uint32`. */
808
- BuiltinType uint32 ( ) { result .getName ( ) = "uint32" }
814
+ BuiltinTypeEntity uint32 ( ) { result .getName ( ) = "uint32" }
809
815
810
816
/** Gets the built-in type `uint64`. */
811
- BuiltinType uint64 ( ) { result .getName ( ) = "uint64" }
817
+ BuiltinTypeEntity uint64 ( ) { result .getName ( ) = "uint64" }
812
818
813
819
/** Gets the built-in type `uintptr`. */
814
- BuiltinType uintptr ( ) { result .getName ( ) = "uintptr" }
820
+ BuiltinTypeEntity uintptr ( ) { result .getName ( ) = "uintptr" }
815
821
816
822
// built-in constants
817
823
/** Gets the built-in constant `true`. */
0 commit comments