@@ -435,8 +435,12 @@ class Destructor extends DotNet::Destructor, Callable, Member, Attributable, @de
435
435
* (`BinaryOperator`), or a conversion operator (`ConversionOperator`).
436
436
*/
437
437
class Operator extends Callable , Member , Attributable , @operator {
438
- /** Gets the assembly name of this operator. */
439
- string getAssemblyName ( ) { operators ( this , result , _, _, _, _) }
438
+ /**
439
+ * DEPRECATED: use `getFunctionName()` instead.
440
+ *
441
+ * Gets the assembly name of this operator.
442
+ */
443
+ deprecated string getAssemblyName ( ) { result = this .getFunctionName ( ) }
440
444
441
445
override string getName ( ) { operators ( this , _, result , _, _, _) }
442
446
@@ -445,7 +449,7 @@ class Operator extends Callable, Member, Attributable, @operator {
445
449
/**
446
450
* Gets the metadata name of the operator, such as `op_implicit` or `op_RightShift`.
447
451
*/
448
- string getFunctionName ( ) { none ( ) }
452
+ string getFunctionName ( ) { operators ( this , result , _ , _ , _ , _ ) }
449
453
450
454
override ValueOrRefType getDeclaringType ( ) { operators ( this , _, _, result , _, _) }
451
455
@@ -505,8 +509,6 @@ class UnaryOperator extends Operator {
505
509
class PlusOperator extends UnaryOperator {
506
510
PlusOperator ( ) { this .getName ( ) = "+" }
507
511
508
- override string getFunctionName ( ) { result = "op_UnaryPlus" }
509
-
510
512
override string getAPrimaryQlClass ( ) { result = "PlusOperator" }
511
513
}
512
514
@@ -522,8 +524,6 @@ class PlusOperator extends UnaryOperator {
522
524
class MinusOperator extends UnaryOperator {
523
525
MinusOperator ( ) { this .getName ( ) = "-" }
524
526
525
- override string getFunctionName ( ) { result = "op_UnaryNegation" }
526
-
527
527
override string getAPrimaryQlClass ( ) { result = "MinusOperator" }
528
528
}
529
529
@@ -539,8 +539,6 @@ class MinusOperator extends UnaryOperator {
539
539
class NotOperator extends UnaryOperator {
540
540
NotOperator ( ) { this .getName ( ) = "!" }
541
541
542
- override string getFunctionName ( ) { result = "op_LogicalNot" }
543
-
544
542
override string getAPrimaryQlClass ( ) { result = "NotOperator" }
545
543
}
546
544
@@ -556,8 +554,6 @@ class NotOperator extends UnaryOperator {
556
554
class ComplementOperator extends UnaryOperator {
557
555
ComplementOperator ( ) { this .getName ( ) = "~" }
558
556
559
- override string getFunctionName ( ) { result = "op_OnesComplement" }
560
-
561
557
override string getAPrimaryQlClass ( ) { result = "ComplementOperator" }
562
558
}
563
559
@@ -573,8 +569,6 @@ class ComplementOperator extends UnaryOperator {
573
569
class IncrementOperator extends UnaryOperator {
574
570
IncrementOperator ( ) { this .getName ( ) = "++" }
575
571
576
- override string getFunctionName ( ) { result = "op_Increment" }
577
-
578
572
override string getAPrimaryQlClass ( ) { result = "IncrementOperator" }
579
573
}
580
574
@@ -590,8 +584,6 @@ class IncrementOperator extends UnaryOperator {
590
584
class DecrementOperator extends UnaryOperator {
591
585
DecrementOperator ( ) { this .getName ( ) = "--" }
592
586
593
- override string getFunctionName ( ) { result = "op_Decrement" }
594
-
595
587
override string getAPrimaryQlClass ( ) { result = "DecrementOperator" }
596
588
}
597
589
@@ -607,8 +599,6 @@ class DecrementOperator extends UnaryOperator {
607
599
class FalseOperator extends UnaryOperator {
608
600
FalseOperator ( ) { this .getName ( ) = "false" }
609
601
610
- override string getFunctionName ( ) { result = "op_False" }
611
-
612
602
override string getAPrimaryQlClass ( ) { result = "FalseOperator" }
613
603
}
614
604
@@ -624,8 +614,6 @@ class FalseOperator extends UnaryOperator {
624
614
class TrueOperator extends UnaryOperator {
625
615
TrueOperator ( ) { this .getName ( ) = "true" }
626
616
627
- override string getFunctionName ( ) { result = "op_True" }
628
-
629
617
override string getAPrimaryQlClass ( ) { result = "TrueOperator" }
630
618
}
631
619
@@ -659,8 +647,6 @@ class BinaryOperator extends Operator {
659
647
class AddOperator extends BinaryOperator {
660
648
AddOperator ( ) { this .getName ( ) = "+" }
661
649
662
- override string getFunctionName ( ) { result = "op_Addition" }
663
-
664
650
override string getAPrimaryQlClass ( ) { result = "AddOperator" }
665
651
}
666
652
@@ -676,8 +662,6 @@ class AddOperator extends BinaryOperator {
676
662
class SubOperator extends BinaryOperator {
677
663
SubOperator ( ) { this .getName ( ) = "-" }
678
664
679
- override string getFunctionName ( ) { result = "op_Subtraction" }
680
-
681
665
override string getAPrimaryQlClass ( ) { result = "SubOperator" }
682
666
}
683
667
@@ -693,8 +677,6 @@ class SubOperator extends BinaryOperator {
693
677
class MulOperator extends BinaryOperator {
694
678
MulOperator ( ) { this .getName ( ) = "*" }
695
679
696
- override string getFunctionName ( ) { result = "op_Multiply" }
697
-
698
680
override string getAPrimaryQlClass ( ) { result = "MulOperator" }
699
681
}
700
682
@@ -710,8 +692,6 @@ class MulOperator extends BinaryOperator {
710
692
class DivOperator extends BinaryOperator {
711
693
DivOperator ( ) { this .getName ( ) = "/" }
712
694
713
- override string getFunctionName ( ) { result = "op_Division" }
714
-
715
695
override string getAPrimaryQlClass ( ) { result = "DivOperator" }
716
696
}
717
697
@@ -727,8 +707,6 @@ class DivOperator extends BinaryOperator {
727
707
class RemOperator extends BinaryOperator {
728
708
RemOperator ( ) { this .getName ( ) = "%" }
729
709
730
- override string getFunctionName ( ) { result = "op_Modulus" }
731
-
732
710
override string getAPrimaryQlClass ( ) { result = "RemOperator" }
733
711
}
734
712
@@ -744,8 +722,6 @@ class RemOperator extends BinaryOperator {
744
722
class AndOperator extends BinaryOperator {
745
723
AndOperator ( ) { this .getName ( ) = "&" }
746
724
747
- override string getFunctionName ( ) { result = "op_BitwiseAnd" }
748
-
749
725
override string getAPrimaryQlClass ( ) { result = "AndOperator" }
750
726
}
751
727
@@ -761,8 +737,6 @@ class AndOperator extends BinaryOperator {
761
737
class OrOperator extends BinaryOperator {
762
738
OrOperator ( ) { this .getName ( ) = "|" }
763
739
764
- override string getFunctionName ( ) { result = "op_BitwiseOr" }
765
-
766
740
override string getAPrimaryQlClass ( ) { result = "OrOperator" }
767
741
}
768
742
@@ -778,8 +752,6 @@ class OrOperator extends BinaryOperator {
778
752
class XorOperator extends BinaryOperator {
779
753
XorOperator ( ) { this .getName ( ) = "^" }
780
754
781
- override string getFunctionName ( ) { result = "op_ExclusiveOr" }
782
-
783
755
override string getAPrimaryQlClass ( ) { result = "XorOperator" }
784
756
}
785
757
@@ -795,8 +767,6 @@ class XorOperator extends BinaryOperator {
795
767
class LeftShiftOperator extends BinaryOperator {
796
768
LeftShiftOperator ( ) { this .getName ( ) = "<<" }
797
769
798
- override string getFunctionName ( ) { result = "op_LeftShift" }
799
-
800
770
override string getAPrimaryQlClass ( ) { result = "LeftShiftOperator" }
801
771
}
802
772
@@ -815,8 +785,6 @@ deprecated class LShiftOperator = LeftShiftOperator;
815
785
class RightShiftOperator extends BinaryOperator {
816
786
RightShiftOperator ( ) { this .getName ( ) = ">>" }
817
787
818
- override string getFunctionName ( ) { result = "op_RightShift" }
819
-
820
788
override string getAPrimaryQlClass ( ) { result = "RightShiftOperator" }
821
789
}
822
790
@@ -835,8 +803,6 @@ deprecated class RShiftOperator = RightShiftOperator;
835
803
class UnsignedRightShiftOperator extends BinaryOperator {
836
804
UnsignedRightShiftOperator ( ) { this .getName ( ) = ">>>" }
837
805
838
- override string getFunctionName ( ) { result = "op_UnsignedRightShift" }
839
-
840
806
override string getAPrimaryQlClass ( ) { result = "UnsignedRightShiftOperator" }
841
807
}
842
808
@@ -852,8 +818,6 @@ class UnsignedRightShiftOperator extends BinaryOperator {
852
818
class EQOperator extends BinaryOperator {
853
819
EQOperator ( ) { this .getName ( ) = "==" }
854
820
855
- override string getFunctionName ( ) { result = "op_Equality" }
856
-
857
821
override string getAPrimaryQlClass ( ) { result = "EQOperator" }
858
822
}
859
823
@@ -869,8 +833,6 @@ class EQOperator extends BinaryOperator {
869
833
class NEOperator extends BinaryOperator {
870
834
NEOperator ( ) { this .getName ( ) = "!=" }
871
835
872
- override string getFunctionName ( ) { result = "op_Inequality" }
873
-
874
836
override string getAPrimaryQlClass ( ) { result = "NEOperator" }
875
837
}
876
838
@@ -886,8 +848,6 @@ class NEOperator extends BinaryOperator {
886
848
class LTOperator extends BinaryOperator {
887
849
LTOperator ( ) { this .getName ( ) = "<" }
888
850
889
- override string getFunctionName ( ) { result = "op_LessThan" }
890
-
891
851
override string getAPrimaryQlClass ( ) { result = "LTOperator" }
892
852
}
893
853
@@ -903,8 +863,6 @@ class LTOperator extends BinaryOperator {
903
863
class GTOperator extends BinaryOperator {
904
864
GTOperator ( ) { this .getName ( ) = ">" }
905
865
906
- override string getFunctionName ( ) { result = "op_GreaterThan" }
907
-
908
866
override string getAPrimaryQlClass ( ) { result = "GTOperator" }
909
867
}
910
868
@@ -920,8 +878,6 @@ class GTOperator extends BinaryOperator {
920
878
class LEOperator extends BinaryOperator {
921
879
LEOperator ( ) { this .getName ( ) = "<=" }
922
880
923
- override string getFunctionName ( ) { result = "op_LessThanOrEqual" }
924
-
925
881
override string getAPrimaryQlClass ( ) { result = "LEOperator" }
926
882
}
927
883
@@ -937,8 +893,6 @@ class LEOperator extends BinaryOperator {
937
893
class GEOperator extends BinaryOperator {
938
894
GEOperator ( ) { this .getName ( ) = ">=" }
939
895
940
- override string getFunctionName ( ) { result = "op_GreaterThanOrEqual" }
941
-
942
896
override string getAPrimaryQlClass ( ) { result = "GEOperator" }
943
897
}
944
898
@@ -976,8 +930,6 @@ class ConversionOperator extends Operator {
976
930
class ImplicitConversionOperator extends ConversionOperator {
977
931
ImplicitConversionOperator ( ) { this .getName ( ) = "implicit conversion" }
978
932
979
- override string getFunctionName ( ) { result = "op_Implicit" }
980
-
981
933
override string getAPrimaryQlClass ( ) { result = "ImplicitConversionOperator" }
982
934
}
983
935
@@ -993,8 +945,6 @@ class ImplicitConversionOperator extends ConversionOperator {
993
945
class ExplicitConversionOperator extends ConversionOperator {
994
946
ExplicitConversionOperator ( ) { this .getName ( ) = "explicit conversion" }
995
947
996
- override string getFunctionName ( ) { result = "op_Explicit" }
997
-
998
948
override string getAPrimaryQlClass ( ) { result = "ExplicitConversionOperator" }
999
949
}
1000
950
0 commit comments