@@ -740,14 +740,16 @@ private string stubOperator(Operator o, Assembly assembly) {
740
740
if o instanceof ConversionOperator
741
741
then
742
742
result =
743
- " " + stubModifiers ( o ) + stubExplicit ( o ) + "operator " + stubClassName ( o .getReturnType ( ) ) +
744
- "(" + stubParameters ( o ) + ")" + stubImplementation ( o ) + ";\n"
743
+ " " + stubModifiers ( o ) + stubExplicit ( o ) + "operator " + stubChecked ( o ) +
744
+ stubClassName ( o .getReturnType ( ) ) + "(" + stubParameters ( o ) + ")" + stubImplementation ( o ) +
745
+ ";\n"
745
746
else
746
747
if not o .getDeclaringType ( ) instanceof Enum
747
748
then
748
749
result =
749
- " " + stubModifiers ( o ) + stubClassName ( o .getReturnType ( ) ) + " operator " + o .getName ( ) +
750
- "(" + stubParameters ( o ) + ")" + stubImplementation ( o ) + ";\n"
750
+ " " + stubModifiers ( o ) + stubClassName ( o .getReturnType ( ) ) + " " +
751
+ stubExplicitImplementation ( o ) + "operator " + o .getName ( ) + "(" + stubParameters ( o ) + ")" +
752
+ stubImplementation ( o ) + ";\n"
751
753
else result = " // Stub generator skipped operator: " + o .getName ( ) + "\n"
752
754
}
753
755
@@ -888,7 +890,16 @@ private string stubConstructorInitializer(Constructor c) {
888
890
private string stubExplicit ( ConversionOperator op ) {
889
891
op instanceof ImplicitConversionOperator and result = "implicit "
890
892
or
891
- op instanceof ExplicitConversionOperator and result = "explicit "
893
+ (
894
+ op instanceof ExplicitConversionOperator
895
+ or
896
+ op instanceof CheckedExplicitConversionOperator
897
+ ) and
898
+ result = "explicit "
899
+ }
900
+
901
+ private string stubChecked ( Operator o ) {
902
+ if o instanceof CheckedExplicitConversionOperator then result = "checked " else result = ""
892
903
}
893
904
894
905
private string stubGetter ( DeclarationWithGetSetAccessors p ) {
0 commit comments