@@ -413,6 +413,8 @@ class VoidType extends DotNet::ValueOrRefType, Type, @void_type {
413413 final override string getUndecoratedName ( ) { result = "Void" }
414414
415415 override SystemNamespace getDeclaringNamespace ( ) { any ( ) }
416+
417+ override string getAPrimaryQlClass ( ) { result = "VoidType" }
416418}
417419
418420/**
@@ -454,6 +456,8 @@ class BoolType extends SimpleType, @bool_type {
454456 override string toStringWithTypes ( ) { result = "bool" }
455457
456458 override int getSize ( ) { result = 1 }
459+
460+ override string getAPrimaryQlClass ( ) { result = "BoolType" }
457461}
458462
459463/**
@@ -467,6 +471,8 @@ class CharType extends SimpleType, @char_type {
467471 override int minValue ( ) { result = 0 }
468472
469473 override int maxValue ( ) { result = 65535 }
474+
475+ override string getAPrimaryQlClass ( ) { result = "CharType" }
470476}
471477
472478/**
@@ -506,6 +512,8 @@ class SByteType extends SignedIntegralType, @sbyte_type {
506512 override int minValue ( ) { result = - 128 }
507513
508514 override int maxValue ( ) { result = 127 }
515+
516+ override string getAPrimaryQlClass ( ) { result = "SByteType" }
509517}
510518
511519/**
@@ -519,6 +527,8 @@ class ShortType extends SignedIntegralType, @short_type {
519527 override int minValue ( ) { result = - 32768 }
520528
521529 override int maxValue ( ) { result = 32767 }
530+
531+ override string getAPrimaryQlClass ( ) { result = "ShortType" }
522532}
523533
524534/**
@@ -532,6 +542,8 @@ class IntType extends SignedIntegralType, @int_type {
532542 override int minValue ( ) { result = - 2147483647 - 1 }
533543
534544 override int maxValue ( ) { result = 2147483647 }
545+
546+ override string getAPrimaryQlClass ( ) { result = "IntType" }
535547}
536548
537549/**
@@ -541,6 +553,8 @@ class LongType extends SignedIntegralType, @long_type {
541553 override string toStringWithTypes ( ) { result = "long" }
542554
543555 override int getSize ( ) { result = 8 }
556+
557+ override string getAPrimaryQlClass ( ) { result = "LongType" }
544558}
545559
546560/**
@@ -552,6 +566,8 @@ class ByteType extends UnsignedIntegralType, @byte_type {
552566 override int getSize ( ) { result = 1 }
553567
554568 override int maxValue ( ) { result = 255 }
569+
570+ override string getAPrimaryQlClass ( ) { result = "ByteType" }
555571}
556572
557573/**
@@ -563,6 +579,8 @@ class UShortType extends UnsignedIntegralType, @ushort_type {
563579 override int getSize ( ) { result = 2 }
564580
565581 override int maxValue ( ) { result = 65535 }
582+
583+ override string getAPrimaryQlClass ( ) { result = "UShortType" }
566584}
567585
568586/**
@@ -572,6 +590,8 @@ class UIntType extends UnsignedIntegralType, @uint_type {
572590 override string toStringWithTypes ( ) { result = "uint" }
573591
574592 override int getSize ( ) { result = 4 }
593+
594+ override string getAPrimaryQlClass ( ) { result = "UIntType" }
575595}
576596
577597/**
@@ -581,6 +601,8 @@ class ULongType extends UnsignedIntegralType, @ulong_type {
581601 override string toStringWithTypes ( ) { result = "ulong" }
582602
583603 override int getSize ( ) { result = 8 }
604+
605+ override string getAPrimaryQlClass ( ) { result = "ULongType" }
584606}
585607
586608/**
@@ -597,6 +619,8 @@ class FloatType extends FloatingPointType, @float_type {
597619 override string toStringWithTypes ( ) { result = "float" }
598620
599621 override int getSize ( ) { result = 4 }
622+
623+ override string getAPrimaryQlClass ( ) { result = "FloatType" }
600624}
601625
602626/**
@@ -606,6 +630,8 @@ class DoubleType extends FloatingPointType, @double_type {
606630 override string toStringWithTypes ( ) { result = "double" }
607631
608632 override int getSize ( ) { result = 8 }
633+
634+ override string getAPrimaryQlClass ( ) { result = "DoubleType" }
609635}
610636
611637/**
@@ -615,6 +641,8 @@ class DecimalType extends SimpleType, @decimal_type {
615641 override string toStringWithTypes ( ) { result = "decimal" }
616642
617643 override int getSize ( ) { result = 16 }
644+
645+ override string getAPrimaryQlClass ( ) { result = "DecimalType" }
618646}
619647
620648/**
@@ -775,6 +803,8 @@ class ObjectType extends Class {
775803 ObjectType ( ) { this .hasQualifiedName ( "System.Object" ) }
776804
777805 override string toStringWithTypes ( ) { result = "object" }
806+
807+ override string getAPrimaryQlClass ( ) { result = "ObjectType" }
778808}
779809
780810/**
@@ -784,6 +814,8 @@ class StringType extends Class {
784814 StringType ( ) { this .hasQualifiedName ( "System.String" ) }
785815
786816 override string toStringWithTypes ( ) { result = "string" }
817+
818+ override string getAPrimaryQlClass ( ) { result = "StringType" }
787819}
788820
789821/**
@@ -910,7 +942,9 @@ class FunctionPointerType extends Type, Parameterizable, @function_pointer_type
910942/**
911943 * The `null` type. The type of the `null` literal.
912944 */
913- class NullType extends RefType , @null_type { }
945+ class NullType extends RefType , @null_type {
946+ override string getAPrimaryQlClass ( ) { result = "NullType" }
947+ }
914948
915949/**
916950 * A nullable type, for example `int?`.
@@ -1124,6 +1158,8 @@ class TupleType extends ValueType, @tuple_type {
11241158 final override predicate hasQualifiedName ( string qualifier , string name ) {
11251159 this .getUnderlyingType ( ) .hasQualifiedName ( qualifier , name )
11261160 }
1161+
1162+ override string getAPrimaryQlClass ( ) { result = "TupleType" }
11271163}
11281164
11291165/**
0 commit comments