From 77a19945ee7a5e13eeac56829c84a34f1a6ccd8e Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 5 Apr 2022 12:05:27 +0200 Subject: [PATCH] Add missing slash to `paramref` tags (#53) --- .../samples/Variant-class-nullable-disable.out.cs | 6 +++--- .../samples/Variant-class-nullable-enable.out.cs | 8 ++++---- .../samples/Variant-disposable.out.cs | 4 ++-- .../samples/Variant-generic-T-as-nullable.out.cs | 12 ++++++------ .../samples/Variant-generic-class-nullable.out.cs | 2 +- .../samples/Variant-generic-class.out.cs | 2 +- .../samples/Variant-generic-multiple.out.cs | 6 +++--- .../samples/Variant-generic-notnull.out.cs | 2 +- .../samples/Variant-generic-struct.out.cs | 2 +- .../samples/Variant-generic-unbounded.out.cs | 2 +- .../samples/Variant-nullable-value-type.out.cs | 2 +- .../samples/Variant-public.out.cs | 4 ++-- .../samples/Variant-struct-nullable-disable.out.cs | 6 +++--- .../samples/Variant-struct-nullable-enable.out.cs | 6 +++--- src/dotVariant.Generator/templates/Union.scriban-cs | 2 +- 15 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.out.cs b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.out.cs index 26a6391..6e16463 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.out.cs @@ -481,7 +481,7 @@ public bool TryMatch(out int i) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_class_nullable_disable contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action i) { if (this.Index == 1) @@ -611,7 +611,7 @@ public bool TryMatch(out float f) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_class_nullable_disable contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action f) { if (this.Index == 2) @@ -741,7 +741,7 @@ public bool TryMatch(out string s) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_class_nullable_disable contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action s) { if (this.Index == 3) diff --git a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.out.cs b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.out.cs index bdc1448..a82faba 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.out.cs @@ -573,7 +573,7 @@ public bool TryMatch([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_class_nullable_enable contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action i) { if (this.Index == 1) @@ -703,7 +703,7 @@ public bool TryMatch([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_class_nullable_enable contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action f) { if (this.Index == 2) @@ -833,7 +833,7 @@ public bool TryMatch([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_class_nullable_enable contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action s) { if (this.Index == 3) @@ -963,7 +963,7 @@ public bool TryMatch(out global::System.Array? a) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_class_nullable_enable contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action a) { if (this.Index == 4) diff --git a/src/dotVariant.Generator.Test/samples/Variant-disposable.out.cs b/src/dotVariant.Generator.Test/samples/Variant-disposable.out.cs index d54aeb4..4ee5843 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-disposable.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-disposable.out.cs @@ -420,7 +420,7 @@ public bool TryMatch(out int i) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_disposable contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action i) { if (this.Index == 1) @@ -550,7 +550,7 @@ public bool TryMatch(out global::System.IO.Stream stream) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_disposable contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action stream) { if (this.Index == 2) diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.out.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.out.cs index 82a52b1..71a26a7 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.out.cs @@ -768,7 +768,7 @@ public bool TryMatch(out T1? a) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action a) { if (this.Index == 1) @@ -898,7 +898,7 @@ public bool TryMatch(out T2? b) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action b) { if (this.Index == 2) @@ -1028,7 +1028,7 @@ public bool TryMatch(out T3? c) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action c) { if (this.Index == 3) @@ -1158,7 +1158,7 @@ public bool TryMatch(out T4? d) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action d) { if (this.Index == 4) @@ -1288,7 +1288,7 @@ public bool TryMatch(out T5? e) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action e) { if (this.Index == 5) @@ -1418,7 +1418,7 @@ public bool TryMatch(out T6? f) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action f) { if (this.Index == 6) diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.out.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.out.cs index 2fb3273..dd6062b 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.out.cs @@ -304,7 +304,7 @@ public bool TryMatch(out T? value) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action value) { if (this.Index == 1) diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-class.out.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-class.out.cs index a1dbded..7c80c43 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-class.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-class.out.cs @@ -304,7 +304,7 @@ public bool TryMatch([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] /// /// The delegate to invoke with the stored value if it is of type . /// if Variant contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action value) { if (this.Index == 1) diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.out.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.out.cs index 562acba..d441141 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.out.cs @@ -515,7 +515,7 @@ public bool TryMatch([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] /// /// The delegate to invoke with the stored value if it is of type . /// if Variant contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action a) { if (this.Index == 1) @@ -645,7 +645,7 @@ public bool TryMatch([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] /// /// The delegate to invoke with the stored value if it is of type . /// if Variant contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action b) { if (this.Index == 2) @@ -775,7 +775,7 @@ public bool TryMatch([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] /// /// The delegate to invoke with the stored value if it is of type . /// if Variant contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action c) { if (this.Index == 3) diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.out.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.out.cs index 7f03d8e..e080936 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.out.cs @@ -304,7 +304,7 @@ public bool TryMatch([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] /// /// The delegate to invoke with the stored value if it is of type . /// if Variant contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action value) { if (this.Index == 1) diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-struct.out.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-struct.out.cs index 9b3a4cc..e2d6590 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-struct.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-struct.out.cs @@ -304,7 +304,7 @@ public bool TryMatch([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] /// /// The delegate to invoke with the stored value if it is of type . /// if Variant contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action value) { if (this.Index == 1) diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.out.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.out.cs index 40fb586..b2bc1bd 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.out.cs @@ -303,7 +303,7 @@ public bool TryMatch(out T? value) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action value) { if (this.Index == 1) diff --git a/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.out.cs b/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.out.cs index 0d6f6b3..2267ed3 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.out.cs @@ -303,7 +303,7 @@ public bool TryMatch(out int? i) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_nullable_value_type contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action i) { if (this.Index == 1) diff --git a/src/dotVariant.Generator.Test/samples/Variant-public.out.cs b/src/dotVariant.Generator.Test/samples/Variant-public.out.cs index c8da0de..a8593ba 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-public.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-public.out.cs @@ -391,7 +391,7 @@ public bool TryMatch(out int i) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_public contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action i) { if (this.Index == 1) @@ -521,7 +521,7 @@ public bool TryMatch(out string s) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_public contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action s) { if (this.Index == 2) diff --git a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.out.cs b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.out.cs index a80a1b8..8dddb82 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.out.cs @@ -479,7 +479,7 @@ public bool TryMatch(out long l) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_struct_nullable_disable contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action l) { if (this.Index == 1) @@ -609,7 +609,7 @@ public bool TryMatch(out double d) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_struct_nullable_disable contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action d) { if (this.Index == 2) @@ -739,7 +739,7 @@ public bool TryMatch(out object o) /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_struct_nullable_disable contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action o) { if (this.Index == 3) diff --git a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.out.cs b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.out.cs index 9344647..c955747 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.out.cs @@ -479,7 +479,7 @@ public bool TryMatch([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_struct_nullable_enable contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action l) { if (this.Index == 1) @@ -609,7 +609,7 @@ public bool TryMatch([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_struct_nullable_enable contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action d) { if (this.Index == 2) @@ -739,7 +739,7 @@ public bool TryMatch([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] /// /// The delegate to invoke with the stored value if it is of type . /// if Variant_struct_nullable_enable contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch(global::System.Action o) { if (this.Index == 3) diff --git a/src/dotVariant.Generator/templates/Union.scriban-cs b/src/dotVariant.Generator/templates/Union.scriban-cs index 2b6f40b..9802b31 100644 --- a/src/dotVariant.Generator/templates/Union.scriban-cs +++ b/src/dotVariant.Generator/templates/Union.scriban-cs @@ -377,7 +377,7 @@ namespace dotVariant._G{{ if Variant.Namespace; "." + Variant.Namespace; end }} /// /// The delegate to invoke with the stored value if it is of type . /// if {{ Variant.Name }} contained a value of type . - /// Any exception thrown from is rethrown. + /// Any exception thrown from is rethrown. public bool TryMatch({{ action_type $p }} {{ $p.Identifier }}) { if ({{ $get_n }} == {{ $p.Index }})