diff --git a/AutomaticInterface/AutomaticInterfaceExample/AutomaticInterfaceExample.csproj b/AutomaticInterface/AutomaticInterfaceExample/AutomaticInterfaceExample.csproj index f846c60..cf46c5a 100644 --- a/AutomaticInterface/AutomaticInterfaceExample/AutomaticInterfaceExample.csproj +++ b/AutomaticInterface/AutomaticInterfaceExample/AutomaticInterfaceExample.csproj @@ -1,7 +1,7 @@  Exe - net8.0 + net10.0 enable Debug;Release;DebugGenerator True @@ -10,11 +10,7 @@ True - + diff --git a/AutomaticInterface/AutomaticInterfaceExample/TestDocComments.cs b/AutomaticInterface/AutomaticInterfaceExample/TestDocComments.cs new file mode 100644 index 0000000..d059f6a --- /dev/null +++ b/AutomaticInterface/AutomaticInterfaceExample/TestDocComments.cs @@ -0,0 +1,77 @@ +using System; +using DotnetAutomaticInterface; + +namespace AutomaticInterfaceExample; + +public class Class1; + +public class Class2; + +/// +/// Debug utility to verify in IDE that doc comments are correctly rendered for the interface! +/// +/// param +[GenerateAutomaticInterface] +public class TestDocComments((Class1, Class2) clsParam) : ITestDocComments +{ + private readonly (Class1, Class2) _clsParam = clsParam; + + /// + /// Some Prop comment ... + /// + public bool SomeProp { get; set; } + + /// + /// Some Comment.. + /// + /// This is the param + public void Method((Class1, Class2) param) { } + + /// + /// Some Comment 2.. + /// + /// param + public void Method2((DateTime? from, DateTime? to) timespan) { } + + /// + /// Some in comment... + /// + /// + public void MethodIn(in bool b) { } + + /// + /// Some params comment... + /// + /// + public void MethodParams(params int[] a) { } + + /// + /// Some Comment 3... + /// + /// + /// + /// + /// param + /// Result + public bool Method3(Class1 param) + { + return true; + } +} + +class SomeOtherClass +{ + public static void Method(ITestDocComments param) + { + param.Method((new Class1(), new Class2())); + param.Method2((new DateTime(), new DateTime())); + param.Method3(new Class1()); + var boolean = true; + param.MethodIn(in boolean); + param.MethodParams(1, 2); + param.SomeProp = true; + } +} diff --git a/AutomaticInterface/DotnetAutomaticInterface/Builder.cs b/AutomaticInterface/DotnetAutomaticInterface/Builder.cs index 8ad7296..55570f0 100644 --- a/AutomaticInterface/DotnetAutomaticInterface/Builder.cs +++ b/AutomaticInterface/DotnetAutomaticInterface/Builder.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; @@ -10,8 +9,25 @@ namespace DotnetAutomaticInterface; public static class Builder { - private static string InheritDoc(ISymbol source) => - $"/// ', '}').Replace("params ", "")}\" />"; // we use inherit doc because that should be able to fetch documentation from base classes. + /// + /// Generates inheritdoc with canonical cref reference declaration. + /// + /// The symbol to annotate + /// + /// + /// /// <inheritdoc cref="SomeSymbol" /> + /// + /// + private static string InheritDoc(ISymbol source) + { + var declarationId = DocumentationCommentId.CreateDeclarationId(source); + if (!string.IsNullOrWhiteSpace(declarationId)) + return $"/// "; + + // old probably hacky fallback ... + // we use inherit doc because that should be able to fetch documentation from base classes. + return $"/// ', '}').Replace("params ", "")}\" />"; + } private static readonly SymbolDisplayFormat FullyQualifiedDisplayFormat = new( genericsOptions: SymbolDisplayGenericsOptions.IncludeTypeParameters, @@ -206,6 +222,7 @@ bool nullableContextEnabled .Visit(param.DeclaringSyntaxReferences.First().GetSyntax()) .ToFullString(); } + return param.ToDisplayString(FullyQualifiedDisplayFormat); } diff --git a/AutomaticInterface/Tests/Enums/Enums.WorksWithByteEnumsProperties.verified.txt b/AutomaticInterface/Tests/Enums/Enums.WorksWithByteEnumsProperties.verified.txt index 72eaab4..77a4776 100644 --- a/AutomaticInterface/Tests/Enums/Enums.WorksWithByteEnumsProperties.verified.txt +++ b/AutomaticInterface/Tests/Enums/Enums.WorksWithByteEnumsProperties.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// global::AutomaticInterfaceExample.EnumWithByteType SomeProperty { get; set; } } diff --git a/AutomaticInterface/Tests/Enums/Enums.WorksWithEnum-byte.verified.txt b/AutomaticInterface/Tests/Enums/Enums.WorksWithEnum-byte.verified.txt index 223bc40..f425ca8 100644 --- a/AutomaticInterface/Tests/Enums/Enums.WorksWithEnum-byte.verified.txt +++ b/AutomaticInterface/Tests/Enums/Enums.WorksWithEnum-byte.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// void MethodWithDefaultParameter(global::AutomaticInterfaceExample.EnumWithByteType a = global::AutomaticInterfaceExample.EnumWithByteType.B); } diff --git a/AutomaticInterface/Tests/Enums/Enums.WorksWithEnum-int.verified.txt b/AutomaticInterface/Tests/Enums/Enums.WorksWithEnum-int.verified.txt index 223bc40..f425ca8 100644 --- a/AutomaticInterface/Tests/Enums/Enums.WorksWithEnum-int.verified.txt +++ b/AutomaticInterface/Tests/Enums/Enums.WorksWithEnum-int.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// void MethodWithDefaultParameter(global::AutomaticInterfaceExample.EnumWithByteType a = global::AutomaticInterfaceExample.EnumWithByteType.B); } diff --git a/AutomaticInterface/Tests/Enums/Enums.WorksWithEnum-long.verified.txt b/AutomaticInterface/Tests/Enums/Enums.WorksWithEnum-long.verified.txt index 223bc40..f425ca8 100644 --- a/AutomaticInterface/Tests/Enums/Enums.WorksWithEnum-long.verified.txt +++ b/AutomaticInterface/Tests/Enums/Enums.WorksWithEnum-long.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// void MethodWithDefaultParameter(global::AutomaticInterfaceExample.EnumWithByteType a = global::AutomaticInterfaceExample.EnumWithByteType.B); } diff --git a/AutomaticInterface/Tests/Enums/Enums.WorksWithEnumsAsReturnType.verified.txt b/AutomaticInterface/Tests/Enums/Enums.WorksWithEnumsAsReturnType.verified.txt index f051894..f74a545 100644 --- a/AutomaticInterface/Tests/Enums/Enums.WorksWithEnumsAsReturnType.verified.txt +++ b/AutomaticInterface/Tests/Enums/Enums.WorksWithEnumsAsReturnType.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// global::AutomaticInterfaceExample.EnumWithByteType MethodWithDefaultParameter(global::AutomaticInterfaceExample.EnumWithByteType a = global::AutomaticInterfaceExample.EnumWithByteType.B); } diff --git a/AutomaticInterface/Tests/Enums/Enums.WorksWithFlagEnum.verified.txt b/AutomaticInterface/Tests/Enums/Enums.WorksWithFlagEnum.verified.txt index 223bc40..f425ca8 100644 --- a/AutomaticInterface/Tests/Enums/Enums.WorksWithFlagEnum.verified.txt +++ b/AutomaticInterface/Tests/Enums/Enums.WorksWithFlagEnum.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// void MethodWithDefaultParameter(global::AutomaticInterfaceExample.EnumWithByteType a = global::AutomaticInterfaceExample.EnumWithByteType.B); } diff --git a/AutomaticInterface/Tests/Events/Events.CopiesEventsToInterface.verified.txt b/AutomaticInterface/Tests/Events/Events.CopiesEventsToInterface.verified.txt index 50c8831..3945e08 100644 --- a/AutomaticInterface/Tests/Events/Events.CopiesEventsToInterface.verified.txt +++ b/AutomaticInterface/Tests/Events/Events.CopiesEventsToInterface.verified.txt @@ -14,7 +14,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// event global::System.EventHandler ShapeChanged; } diff --git a/AutomaticInterface/Tests/Events/Events.NullableEvent.verified.txt b/AutomaticInterface/Tests/Events/Events.NullableEvent.verified.txt index 6d505dc..d6fdc41 100644 --- a/AutomaticInterface/Tests/Events/Events.NullableEvent.verified.txt +++ b/AutomaticInterface/Tests/Events/Events.NullableEvent.verified.txt @@ -15,7 +15,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// event global::System.EventHandler? ShapeChangedNullable; } diff --git a/AutomaticInterface/Tests/Events/Events.NullableEvent2.verified.txt b/AutomaticInterface/Tests/Events/Events.NullableEvent2.verified.txt index 0a9f4a9..b880506 100644 --- a/AutomaticInterface/Tests/Events/Events.NullableEvent2.verified.txt +++ b/AutomaticInterface/Tests/Events/Events.NullableEvent2.verified.txt @@ -15,7 +15,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// event global::System.EventHandler ShapeChangedNullable; } diff --git a/AutomaticInterface/Tests/Events/Events.WorksWithEventOverrides.verified.txt b/AutomaticInterface/Tests/Events/Events.WorksWithEventOverrides.verified.txt index 2588eb2..12db9b8 100644 --- a/AutomaticInterface/Tests/Events/Events.WorksWithEventOverrides.verified.txt +++ b/AutomaticInterface/Tests/Events/Events.WorksWithEventOverrides.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// event global::System.EventHandler AnEvent; } diff --git a/AutomaticInterface/Tests/Events/Events.WorksWithEventShadowing.verified.txt b/AutomaticInterface/Tests/Events/Events.WorksWithEventShadowing.verified.txt index 2588eb2..12db9b8 100644 --- a/AutomaticInterface/Tests/Events/Events.WorksWithEventShadowing.verified.txt +++ b/AutomaticInterface/Tests/Events/Events.WorksWithEventShadowing.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// event global::System.EventHandler AnEvent; } diff --git a/AutomaticInterface/Tests/Methods/Methods.AddsDescriptionFromMethodToInterface.verified.txt b/AutomaticInterface/Tests/Methods/Methods.AddsDescriptionFromMethodToInterface.verified.txt index 60f120a..0683243 100644 --- a/AutomaticInterface/Tests/Methods/Methods.AddsDescriptionFromMethodToInterface.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.AddsDescriptionFromMethodToInterface.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello(string x); } diff --git a/AutomaticInterface/Tests/Methods/Methods.AddsMultiLineDescriptionFromMethodToInterface.verified.txt b/AutomaticInterface/Tests/Methods/Methods.AddsMultiLineDescriptionFromMethodToInterface.verified.txt index 60f120a..0683243 100644 --- a/AutomaticInterface/Tests/Methods/Methods.AddsMultiLineDescriptionFromMethodToInterface.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.AddsMultiLineDescriptionFromMethodToInterface.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello(string x); } diff --git a/AutomaticInterface/Tests/Methods/Methods.AddsPublicMethodToInterface.verified.txt b/AutomaticInterface/Tests/Methods/Methods.AddsPublicMethodToInterface.verified.txt index 4cbb761..d0bcf95 100644 --- a/AutomaticInterface/Tests/Methods/Methods.AddsPublicMethodToInterface.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.AddsPublicMethodToInterface.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello(); } diff --git a/AutomaticInterface/Tests/Methods/Methods.AddsPublicTaskMethodToInterface.verified.txt b/AutomaticInterface/Tests/Methods/Methods.AddsPublicTaskMethodToInterface.verified.txt index ec28717..d470c99 100644 --- a/AutomaticInterface/Tests/Methods/Methods.AddsPublicTaskMethodToInterface.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.AddsPublicTaskMethodToInterface.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// global::System.Threading.Tasks.Task Hello(); } diff --git a/AutomaticInterface/Tests/Methods/Methods.AddsPublicWithMultipleParamsMethodToInterface.verified.txt b/AutomaticInterface/Tests/Methods/Methods.AddsPublicWithMultipleParamsMethodToInterface.verified.txt index ee53448..d3e6c2b 100644 --- a/AutomaticInterface/Tests/Methods/Methods.AddsPublicWithMultipleParamsMethodToInterface.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.AddsPublicWithMultipleParamsMethodToInterface.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello(string x, int y, double z); } diff --git a/AutomaticInterface/Tests/Methods/Methods.AddsPublicWithParamsGenericMethodToInterface.verified.txt b/AutomaticInterface/Tests/Methods/Methods.AddsPublicWithParamsGenericMethodToInterface.verified.txt index 01d99eb..51e0b00 100644 --- a/AutomaticInterface/Tests/Methods/Methods.AddsPublicWithParamsGenericMethodToInterface.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.AddsPublicWithParamsGenericMethodToInterface.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello(global::System.Threading.Tasks.Task x); } diff --git a/AutomaticInterface/Tests/Methods/Methods.AddsPublicWithParamsMethodToInterface.verified.txt b/AutomaticInterface/Tests/Methods/Methods.AddsPublicWithParamsMethodToInterface.verified.txt index 60f120a..0683243 100644 --- a/AutomaticInterface/Tests/Methods/Methods.AddsPublicWithParamsMethodToInterface.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.AddsPublicWithParamsMethodToInterface.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello(string x); } diff --git a/AutomaticInterface/Tests/Methods/Methods.BooleanWithNonNull.verified.txt b/AutomaticInterface/Tests/Methods/Methods.BooleanWithNonNull.verified.txt index abd3e10..3bc7b23 100644 --- a/AutomaticInterface/Tests/Methods/Methods.BooleanWithNonNull.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.BooleanWithNonNull.verified.txt @@ -15,7 +15,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// global::System.Threading.Tasks.Task GetFinalDocumentsByIDFails(string agreementID, string docType, bool amt = false, bool? attachSupportingDocuments = true, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); } diff --git a/AutomaticInterface/Tests/Methods/Methods.GeneratesOverloadedMethodInterface.verified.txt b/AutomaticInterface/Tests/Methods/Methods.GeneratesOverloadedMethodInterface.verified.txt index e246184..e1f6439 100644 --- a/AutomaticInterface/Tests/Methods/Methods.GeneratesOverloadedMethodInterface.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.GeneratesOverloadedMethodInterface.verified.txt @@ -11,10 +11,10 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string AMethod(string x, string y); - /// + /// string AMethod(string x, string y, string crash); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericMethods.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericMethods.verified.txt index 1d810f2..035a99c 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericMethods.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericMethods.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string CMethod(string x, string y) where T : class where T1 : struct where T3 : global::AutomaticInterfaceExample.DemoClass where T4 : IDemoClass where T5 : new(); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericParameterOverloads.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericParameterOverloads.verified.txt index 20a326a..3964c06 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericParameterOverloads.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericParameterOverloads.verified.txt @@ -11,10 +11,10 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// void AMethod(Func> getValue); - /// + /// void AMethod(Func> getValue); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericParameterOverloadsWithIdenticalTypeNames.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericParameterOverloadsWithIdenticalTypeNames.verified.txt index 0ee3c79..3d5de28 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericParameterOverloadsWithIdenticalTypeNames.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericParameterOverloadsWithIdenticalTypeNames.verified.txt @@ -11,10 +11,10 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// void AMethod(Func> getValue); - /// + /// void AMethod(Func> getValue); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericTypeConstraintsForMethods.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericTypeConstraintsForMethods.verified.txt index 9709a8a..aa4db80 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericTypeConstraintsForMethods.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithGenericTypeConstraintsForMethods.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// IQueryable AddFilter(IQueryable qry) where T : notnull; } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodInParameter.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodInParameter.verified.txt index 9717c9c..14cf90b 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodInParameter.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodInParameter.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// void AMethod(in int someOutParameter); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodOutParameter.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodOutParameter.verified.txt index 633e9fe..3278dbd 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodOutParameter.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodOutParameter.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// void AMethod(out int someOutParameter); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodOverrides.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodOverrides.verified.txt index 011d598..7265d0c 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodOverrides.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodOverrides.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// bool AMethod(); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodRefParameter.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodRefParameter.verified.txt index 66ce0f8..9a5ce1c 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodRefParameter.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodRefParameter.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// void AMethod(ref int someOutParameter); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodShadowing.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodShadowing.verified.txt index 011d598..7265d0c 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodShadowing.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithMethodShadowing.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// bool AMethod(); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithMixedOptionalNullParameters.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithMixedOptionalNullParameters.verified.txt index d5e2d0f..b6b3872 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithMixedOptionalNullParameters.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithMixedOptionalNullParameters.verified.txt @@ -12,7 +12,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// bool TryStartTransaction(int? param, int param2 = 0, string? data = null, Func? func = null); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithNullableGeneric.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithNullableGeneric.verified.txt index 3c2ef0c..2eb3d2a 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithNullableGeneric.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithNullableGeneric.verified.txt @@ -12,7 +12,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// global::System.Threading.Tasks.Task AMethodAsync(global::AutomaticInterfaceExample.DemoClass x, string y); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithNullableGeneric2.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithNullableGeneric2.verified.txt index 3c69346..de222c4 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithNullableGeneric2.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithNullableGeneric2.verified.txt @@ -12,7 +12,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string AMethod(global::System.Threading.Tasks.Task x, string y); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithNullableReturn.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithNullableReturn.verified.txt index 72343fe..9c574ad 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithNullableReturn.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithNullableReturn.verified.txt @@ -12,7 +12,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string? AMethod(global::AutomaticInterfaceExample.DemoClass x, string y); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithOptionalNullParameters.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithOptionalNullParameters.verified.txt index 192623a..99db20d 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithOptionalNullParameters.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithOptionalNullParameters.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// bool TryStartTransaction(string data = null); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithOptionalParameters.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithOptionalParameters.verified.txt index cf358c8..c587077 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithOptionalParameters.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithOptionalParameters.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// bool TryStartTransaction(string file = "", string member = "", int line = 0, bool notify = true); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithParameterDirectionOverloads.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithParameterDirectionOverloads.verified.txt index ecc9e66..256cd86 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithParameterDirectionOverloads.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithParameterDirectionOverloads.verified.txt @@ -11,10 +11,10 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// void AMethod(int val); - /// + /// void AMethod(ref int val); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithParamsParameters.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithParamsParameters.verified.txt index cd33fe3..589c13f 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithParamsParameters.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithParamsParameters.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// void AMethod(params int[] numbers); } diff --git a/AutomaticInterface/Tests/Methods/Methods.WorksWithReservedNames.verified.txt b/AutomaticInterface/Tests/Methods/Methods.WorksWithReservedNames.verified.txt index ec77e44..326b751 100644 --- a/AutomaticInterface/Tests/Methods/Methods.WorksWithReservedNames.verified.txt +++ b/AutomaticInterface/Tests/Methods/Methods.WorksWithReservedNames.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// void AMethod(int @event); } diff --git a/AutomaticInterface/Tests/Misc/Misc.AsInternal.verified.txt b/AutomaticInterface/Tests/Misc/Misc.AsInternal.verified.txt index 34a51af..97e72bb 100644 --- a/AutomaticInterface/Tests/Misc/Misc.AsInternal.verified.txt +++ b/AutomaticInterface/Tests/Misc/Misc.AsInternal.verified.txt @@ -12,7 +12,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] internal partial interface IDemoClass { - /// + /// string AMethod(global::AutomaticInterfaceExample.DemoClass? x, string y); } diff --git a/AutomaticInterface/Tests/Misc/Misc.AsInternalExplicitFalse.verified.txt b/AutomaticInterface/Tests/Misc/Misc.AsInternalExplicitFalse.verified.txt index 9ab168f..25860e7 100644 --- a/AutomaticInterface/Tests/Misc/Misc.AsInternalExplicitFalse.verified.txt +++ b/AutomaticInterface/Tests/Misc/Misc.AsInternalExplicitFalse.verified.txt @@ -12,7 +12,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string AMethod(global::AutomaticInterfaceExample.DemoClass? x, string y); } diff --git a/AutomaticInterface/Tests/Misc/Misc.CopiesDocumentationOfClassToInterface.verified.txt b/AutomaticInterface/Tests/Misc/Misc.CopiesDocumentationOfClassToInterface.verified.txt index e7c280b..fe6aab7 100644 --- a/AutomaticInterface/Tests/Misc/Misc.CopiesDocumentationOfClassToInterface.verified.txt +++ b/AutomaticInterface/Tests/Misc/Misc.CopiesDocumentationOfClassToInterface.verified.txt @@ -14,7 +14,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello { get; } } diff --git a/AutomaticInterface/Tests/Misc/Misc.CorrectInheritDocForTupleParameters.verified.txt b/AutomaticInterface/Tests/Misc/Misc.CorrectInheritDocForTupleParameters.verified.txt new file mode 100644 index 0000000..0486c7d --- /dev/null +++ b/AutomaticInterface/Tests/Misc/Misc.CorrectInheritDocForTupleParameters.verified.txt @@ -0,0 +1,27 @@ +//-------------------------------------------------------------------------------------------------- +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. +// +//-------------------------------------------------------------------------------------------------- + +#nullable enable +namespace AutomaticInterfaceExample +{ + /// + /// Cls comment ... + /// + /// param + [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] + public partial interface IDemoClass + { + /// + void Method((global::AutomaticInterfaceExample.Class1, global::AutomaticInterfaceExample.Class2) param); + + /// + void Method2((DateTime? from, DateTime? to) timespan); + + } +} +#nullable restore diff --git a/AutomaticInterface/Tests/Misc/Misc.CustomInterface.verified.txt b/AutomaticInterface/Tests/Misc/Misc.CustomInterface.verified.txt index 18b7423..4160ff6 100644 --- a/AutomaticInterface/Tests/Misc/Misc.CustomInterface.verified.txt +++ b/AutomaticInterface/Tests/Misc/Misc.CustomInterface.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface ISpecialInterface { - /// + /// void Test(); } diff --git a/AutomaticInterface/Tests/Misc/Misc.CustomInterfaceAndNamespace.verified.txt b/AutomaticInterface/Tests/Misc/Misc.CustomInterfaceAndNamespace.verified.txt index 4f5c068..39e605a 100644 --- a/AutomaticInterface/Tests/Misc/Misc.CustomInterfaceAndNamespace.verified.txt +++ b/AutomaticInterface/Tests/Misc/Misc.CustomInterfaceAndNamespace.verified.txt @@ -11,7 +11,7 @@ namespace CustomNamespace [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface ISpecialInterface { - /// + /// void Test(); } diff --git a/AutomaticInterface/Tests/Misc/Misc.CustomInterfaceAndNamespaceParametersReversed.verified.txt b/AutomaticInterface/Tests/Misc/Misc.CustomInterfaceAndNamespaceParametersReversed.verified.txt index 4f5c068..39e605a 100644 --- a/AutomaticInterface/Tests/Misc/Misc.CustomInterfaceAndNamespaceParametersReversed.verified.txt +++ b/AutomaticInterface/Tests/Misc/Misc.CustomInterfaceAndNamespaceParametersReversed.verified.txt @@ -11,7 +11,7 @@ namespace CustomNamespace [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface ISpecialInterface { - /// + /// void Test(); } diff --git a/AutomaticInterface/Tests/Misc/Misc.CustomNameSpace.verified.txt b/AutomaticInterface/Tests/Misc/Misc.CustomNameSpace.verified.txt index 45147a9..938b768 100644 --- a/AutomaticInterface/Tests/Misc/Misc.CustomNameSpace.verified.txt +++ b/AutomaticInterface/Tests/Misc/Misc.CustomNameSpace.verified.txt @@ -15,7 +15,7 @@ namespace CustomNameSpace [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// global::System.Threading.Tasks.Task GetFinalDocumentsByIDFails(string agreementID, string docType, bool amt = false, bool? attachSupportingDocuments = true, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); } diff --git a/AutomaticInterface/Tests/Misc/Misc.DoesNotCopyCtorToToInterface.verified.txt b/AutomaticInterface/Tests/Misc/Misc.DoesNotCopyCtorToToInterface.verified.txt index e7c280b..fe6aab7 100644 --- a/AutomaticInterface/Tests/Misc/Misc.DoesNotCopyCtorToToInterface.verified.txt +++ b/AutomaticInterface/Tests/Misc/Misc.DoesNotCopyCtorToToInterface.verified.txt @@ -14,7 +14,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello { get; } } diff --git a/AutomaticInterface/Tests/Misc/Misc.FullExample.verified.txt b/AutomaticInterface/Tests/Misc/Misc.FullExample.verified.txt index 9a87066..2de4437 100644 --- a/AutomaticInterface/Tests/Misc/Misc.FullExample.verified.txt +++ b/AutomaticInterface/Tests/Misc/Misc.FullExample.verified.txt @@ -14,16 +14,16 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello { get; set; } - /// + /// string OnlyGet { get; } - /// + /// string AMethod(string x, string y); - /// + /// event global::System.EventHandler ShapeChanged; } diff --git a/AutomaticInterface/Tests/Misc/Misc.WorksWithNullableContext.verified.txt b/AutomaticInterface/Tests/Misc/Misc.WorksWithNullableContext.verified.txt index 9ab168f..25860e7 100644 --- a/AutomaticInterface/Tests/Misc/Misc.WorksWithNullableContext.verified.txt +++ b/AutomaticInterface/Tests/Misc/Misc.WorksWithNullableContext.verified.txt @@ -12,7 +12,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string AMethod(global::AutomaticInterfaceExample.DemoClass? x, string y); } diff --git a/AutomaticInterface/Tests/Misc/Misc.WorksWithOptionalStructParameters.verified.txt b/AutomaticInterface/Tests/Misc/Misc.WorksWithOptionalStructParameters.verified.txt index e90fa82..6486489 100644 --- a/AutomaticInterface/Tests/Misc/Misc.WorksWithOptionalStructParameters.verified.txt +++ b/AutomaticInterface/Tests/Misc/Misc.WorksWithOptionalStructParameters.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// bool TryStartTransaction(global::AutomaticInterfaceExample.MyStruct data = default(global::AutomaticInterfaceExample.MyStruct)); } diff --git a/AutomaticInterface/Tests/Misc/Misc.cs b/AutomaticInterface/Tests/Misc/Misc.cs index 46ea52c..c2e1021 100644 --- a/AutomaticInterface/Tests/Misc/Misc.cs +++ b/AutomaticInterface/Tests/Misc/Misc.cs @@ -404,4 +404,41 @@ public string AMethod(DemoClass? x, string y) """; await Verify(Infrastructure.GenerateCode(code)); } + + [Fact] + public async Task CorrectInheritDocForTupleParameters() + { + const string code = """ + + using DotnetAutomaticInterface; + + namespace AutomaticInterfaceExample; + + public class Class1; + public class Class2; + + /// + /// Cls comment ... + /// + /// param + [GenerateAutomaticInterface] + public class DemoClass((Class1, Class2) clsParam) + { + /// + /// Some Comment 1 ... + /// + /// This is the param + public void Method((Class1, Class2) param) { } + + /// + /// Some Comment 2 ... + /// + /// param + public void Method2((DateTime? from, DateTime? to) timespan) { } + } + + """; + + await Verify(Infrastructure.GenerateCode(code)); + } } diff --git a/AutomaticInterface/Tests/Properties/Properties.CopiesDocumentationOfPropertyToInterface.verified.txt b/AutomaticInterface/Tests/Properties/Properties.CopiesDocumentationOfPropertyToInterface.verified.txt index 0cdb78b..b20e962 100644 --- a/AutomaticInterface/Tests/Properties/Properties.CopiesDocumentationOfPropertyToInterface.verified.txt +++ b/AutomaticInterface/Tests/Properties/Properties.CopiesDocumentationOfPropertyToInterface.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello { get; } } diff --git a/AutomaticInterface/Tests/Properties/Properties.GeneratesInitPropertyInterface.verified.txt b/AutomaticInterface/Tests/Properties/Properties.GeneratesInitPropertyInterface.verified.txt index c704e88..eabd67c 100644 --- a/AutomaticInterface/Tests/Properties/Properties.GeneratesInitPropertyInterface.verified.txt +++ b/AutomaticInterface/Tests/Properties/Properties.GeneratesInitPropertyInterface.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello { get; init; } } diff --git a/AutomaticInterface/Tests/Properties/Properties.GeneratesStringPropertyGetOnlyInterface.verified.txt b/AutomaticInterface/Tests/Properties/Properties.GeneratesStringPropertyGetOnlyInterface.verified.txt index 0cdb78b..b20e962 100644 --- a/AutomaticInterface/Tests/Properties/Properties.GeneratesStringPropertyGetOnlyInterface.verified.txt +++ b/AutomaticInterface/Tests/Properties/Properties.GeneratesStringPropertyGetOnlyInterface.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello { get; } } diff --git a/AutomaticInterface/Tests/Properties/Properties.GeneratesStringPropertyInterface.verified.txt b/AutomaticInterface/Tests/Properties/Properties.GeneratesStringPropertyInterface.verified.txt index 22d6497..4515c36 100644 --- a/AutomaticInterface/Tests/Properties/Properties.GeneratesStringPropertyInterface.verified.txt +++ b/AutomaticInterface/Tests/Properties/Properties.GeneratesStringPropertyInterface.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello { get; set; } } diff --git a/AutomaticInterface/Tests/Properties/Properties.GeneratesStringPropertySetOnlyInterface.verified.txt b/AutomaticInterface/Tests/Properties/Properties.GeneratesStringPropertySetOnlyInterface.verified.txt index 637c22c..ca20b29 100644 --- a/AutomaticInterface/Tests/Properties/Properties.GeneratesStringPropertySetOnlyInterface.verified.txt +++ b/AutomaticInterface/Tests/Properties/Properties.GeneratesStringPropertySetOnlyInterface.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello { set; } } diff --git a/AutomaticInterface/Tests/Properties/Properties.NullableProperty.verified.txt b/AutomaticInterface/Tests/Properties/Properties.NullableProperty.verified.txt index 2c282a3..c45e590 100644 --- a/AutomaticInterface/Tests/Properties/Properties.NullableProperty.verified.txt +++ b/AutomaticInterface/Tests/Properties/Properties.NullableProperty.verified.txt @@ -15,7 +15,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string? NullableProperty { get; set; } } diff --git a/AutomaticInterface/Tests/Properties/Properties.NullableProperty2.verified.txt b/AutomaticInterface/Tests/Properties/Properties.NullableProperty2.verified.txt index 6bf1297..d731b58 100644 --- a/AutomaticInterface/Tests/Properties/Properties.NullableProperty2.verified.txt +++ b/AutomaticInterface/Tests/Properties/Properties.NullableProperty2.verified.txt @@ -15,7 +15,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// global::System.Threading.Tasks.Task NullableProperty { get; set; } } diff --git a/AutomaticInterface/Tests/Properties/Properties.OmitsPrivateSetPropertyInterface.verified.txt b/AutomaticInterface/Tests/Properties/Properties.OmitsPrivateSetPropertyInterface.verified.txt index 0cdb78b..b20e962 100644 --- a/AutomaticInterface/Tests/Properties/Properties.OmitsPrivateSetPropertyInterface.verified.txt +++ b/AutomaticInterface/Tests/Properties/Properties.OmitsPrivateSetPropertyInterface.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello { get; } } diff --git a/AutomaticInterface/Tests/Properties/Properties.WorksWithNewKeyword.verified.txt b/AutomaticInterface/Tests/Properties/Properties.WorksWithNewKeyword.verified.txt index a77432d..fe29cad 100644 --- a/AutomaticInterface/Tests/Properties/Properties.WorksWithNewKeyword.verified.txt +++ b/AutomaticInterface/Tests/Properties/Properties.WorksWithNewKeyword.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface ISecondClass { - /// + /// int AProperty { get; set; } } diff --git a/AutomaticInterface/Tests/Properties/Properties.WorksWithPropertyOverrides.verified.txt b/AutomaticInterface/Tests/Properties/Properties.WorksWithPropertyOverrides.verified.txt index 82df4d8..0851f31 100644 --- a/AutomaticInterface/Tests/Properties/Properties.WorksWithPropertyOverrides.verified.txt +++ b/AutomaticInterface/Tests/Properties/Properties.WorksWithPropertyOverrides.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string SomeProperty { get; set; } } diff --git a/AutomaticInterface/Tests/Properties/Properties.WorksWithPropertyShadowing.verified.txt b/AutomaticInterface/Tests/Properties/Properties.WorksWithPropertyShadowing.verified.txt index 82df4d8..0851f31 100644 --- a/AutomaticInterface/Tests/Properties/Properties.WorksWithPropertyShadowing.verified.txt +++ b/AutomaticInterface/Tests/Properties/Properties.WorksWithPropertyShadowing.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string SomeProperty { get; set; } } diff --git a/AutomaticInterface/Tests/Properties/Properties.WorksWithRef.verified.txt b/AutomaticInterface/Tests/Properties/Properties.WorksWithRef.verified.txt index dcb3bb6..5928ea1 100644 --- a/AutomaticInterface/Tests/Properties/Properties.WorksWithRef.verified.txt +++ b/AutomaticInterface/Tests/Properties/Properties.WorksWithRef.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// ref string AProperty { get; } } diff --git a/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithBracedNamespace.verified.txt b/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithBracedNamespace.verified.txt index 22d6497..4515c36 100644 --- a/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithBracedNamespace.verified.txt +++ b/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithBracedNamespace.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello { get; set; } } diff --git a/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithFileScopedNamespace.verified.txt b/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithFileScopedNamespace.verified.txt index 22d6497..4515c36 100644 --- a/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithFileScopedNamespace.verified.txt +++ b/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithFileScopedNamespace.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// string Hello { get; set; } } diff --git a/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithGlobalUsing.verified.txt b/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithGlobalUsing.verified.txt index 8ca64b8..62da3f4 100644 --- a/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithGlobalUsing.verified.txt +++ b/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithGlobalUsing.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// global::GlobalNamespace.AClass GetClass(); } diff --git a/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithIdenticalTypeNames.verified.txt b/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithIdenticalTypeNames.verified.txt index 2e458da..3ee0448 100644 --- a/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithIdenticalTypeNames.verified.txt +++ b/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithIdenticalTypeNames.verified.txt @@ -11,10 +11,10 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IModelManager { - /// + /// global::AutomaticInterfaceExample.Models1.Model GetModel1(); - /// + /// global::AutomaticInterfaceExample.Models2.Model GetModel2(); } diff --git a/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithNestedUsings.verified.txt b/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithNestedUsings.verified.txt index 0b02d79..c79eb42 100644 --- a/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithNestedUsings.verified.txt +++ b/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithNestedUsings.verified.txt @@ -11,7 +11,7 @@ namespace RootNamespace.ModelManager [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IModelManager { - /// + /// global::RootNamespace.Models.Model GetModel(); } diff --git a/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithShadowedGlobalNamespace.verified.txt b/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithShadowedGlobalNamespace.verified.txt index 0d71942..1afe4c1 100644 --- a/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithShadowedGlobalNamespace.verified.txt +++ b/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithShadowedGlobalNamespace.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// global::System.Threading.Tasks.Task GetTask(); } diff --git a/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithUsingAliases.verified.txt b/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithUsingAliases.verified.txt index 190e7b8..265d540 100644 --- a/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithUsingAliases.verified.txt +++ b/AutomaticInterface/Tests/TypeResolutions/TypeResolutions.WorksWithUsingAliases.verified.txt @@ -11,7 +11,7 @@ namespace AutomaticInterfaceExample [global::System.CodeDom.Compiler.GeneratedCode("DotnetAutomaticInterface", "")] public partial interface IDemoClass { - /// + /// global::System.Threading.Tasks.Task Hello { get; set; } }