@@ -202,13 +202,19 @@ class TypeEntity extends Entity, @typeobject { }
202202class TypeParamParentEntity extends Entity , @typeparamparentobject { }
203203
204204/** A named type which has a declaration. */
205- class DeclaredType extends TypeEntity , DeclaredEntity , TypeParamParentEntity , @decltypeobject {
205+ class DeclaredTypeEntity extends TypeEntity , DeclaredEntity , TypeParamParentEntity , @decltypeobject {
206206 /** Gets the declaration specifier declaring this type. */
207207 TypeSpec getSpec ( ) { result .getNameExpr ( ) = this .getDeclaration ( ) }
208208}
209209
210+ /** DEPRECATED: Use `DeclaredTypeEntity` instead. */
211+ deprecated class DeclaredType = DeclaredTypeEntity ;
212+
210213/** 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 ;
212218
213219/** A built-in or declared constant, variable, field, method or function. */
214220class ValueEntity extends Entity , @valueobject {
@@ -754,64 +760,64 @@ private predicate builtinFunction(
754760module Builtin {
755761 // built-in types
756762 /** Gets the built-in type `bool`. */
757- BuiltinType bool ( ) { result .getName ( ) = "bool" }
763+ BuiltinTypeEntity bool ( ) { result .getName ( ) = "bool" }
758764
759765 /** Gets the built-in type `byte`. */
760- BuiltinType byte ( ) { result .getName ( ) = "byte" }
766+ BuiltinTypeEntity byte ( ) { result .getName ( ) = "byte" }
761767
762768 /** Gets the built-in type `complex64`. */
763- BuiltinType complex64 ( ) { result .getName ( ) = "complex64" }
769+ BuiltinTypeEntity complex64 ( ) { result .getName ( ) = "complex64" }
764770
765771 /** Gets the built-in type `complex128`. */
766- BuiltinType complex128 ( ) { result .getName ( ) = "complex128" }
772+ BuiltinTypeEntity complex128 ( ) { result .getName ( ) = "complex128" }
767773
768774 /** Gets the built-in type `error`. */
769- BuiltinType error ( ) { result .getName ( ) = "error" }
775+ BuiltinTypeEntity error ( ) { result .getName ( ) = "error" }
770776
771777 /** Gets the built-in type `float32`. */
772- BuiltinType float32 ( ) { result .getName ( ) = "float32" }
778+ BuiltinTypeEntity float32 ( ) { result .getName ( ) = "float32" }
773779
774780 /** Gets the built-in type `float64`. */
775- BuiltinType float64 ( ) { result .getName ( ) = "float64" }
781+ BuiltinTypeEntity float64 ( ) { result .getName ( ) = "float64" }
776782
777783 /** Gets the built-in type `int`. */
778- BuiltinType int_ ( ) { result .getName ( ) = "int" }
784+ BuiltinTypeEntity int_ ( ) { result .getName ( ) = "int" }
779785
780786 /** Gets the built-in type `int8`. */
781- BuiltinType int8 ( ) { result .getName ( ) = "int8" }
787+ BuiltinTypeEntity int8 ( ) { result .getName ( ) = "int8" }
782788
783789 /** Gets the built-in type `int16`. */
784- BuiltinType int16 ( ) { result .getName ( ) = "int16" }
790+ BuiltinTypeEntity int16 ( ) { result .getName ( ) = "int16" }
785791
786792 /** Gets the built-in type `int32`. */
787- BuiltinType int32 ( ) { result .getName ( ) = "int32" }
793+ BuiltinTypeEntity int32 ( ) { result .getName ( ) = "int32" }
788794
789795 /** Gets the built-in type `int64`. */
790- BuiltinType int64 ( ) { result .getName ( ) = "int64" }
796+ BuiltinTypeEntity int64 ( ) { result .getName ( ) = "int64" }
791797
792798 /** Gets the built-in type `rune`. */
793- BuiltinType rune ( ) { result .getName ( ) = "rune" }
799+ BuiltinTypeEntity rune ( ) { result .getName ( ) = "rune" }
794800
795801 /** Gets the built-in type `string`. */
796- BuiltinType string_ ( ) { result .getName ( ) = "string" }
802+ BuiltinTypeEntity string_ ( ) { result .getName ( ) = "string" }
797803
798804 /** Gets the built-in type `uint`. */
799- BuiltinType uint ( ) { result .getName ( ) = "uint" }
805+ BuiltinTypeEntity uint ( ) { result .getName ( ) = "uint" }
800806
801807 /** Gets the built-in type `uint8`. */
802- BuiltinType uint8 ( ) { result .getName ( ) = "uint8" }
808+ BuiltinTypeEntity uint8 ( ) { result .getName ( ) = "uint8" }
803809
804810 /** Gets the built-in type `uint16`. */
805- BuiltinType uint16 ( ) { result .getName ( ) = "uint16" }
811+ BuiltinTypeEntity uint16 ( ) { result .getName ( ) = "uint16" }
806812
807813 /** Gets the built-in type `uint32`. */
808- BuiltinType uint32 ( ) { result .getName ( ) = "uint32" }
814+ BuiltinTypeEntity uint32 ( ) { result .getName ( ) = "uint32" }
809815
810816 /** Gets the built-in type `uint64`. */
811- BuiltinType uint64 ( ) { result .getName ( ) = "uint64" }
817+ BuiltinTypeEntity uint64 ( ) { result .getName ( ) = "uint64" }
812818
813819 /** Gets the built-in type `uintptr`. */
814- BuiltinType uintptr ( ) { result .getName ( ) = "uintptr" }
820+ BuiltinTypeEntity uintptr ( ) { result .getName ( ) = "uintptr" }
815821
816822 // built-in constants
817823 /** Gets the built-in constant `true`. */
0 commit comments