From 2226217e3e3e737b96adb1d4e2da6de16948c3e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20=C3=98stergaard?= Date: Thu, 11 Aug 2022 15:59:57 +0200 Subject: [PATCH] Fixed the 'Transpied' -> 'Transpiled" typo --- src/Tapper/TypeScriptCodeGenerator.cs | 6 +- tests/Tapper.Tests/CollectionClassesAnswer.cs | 104 ++++++------- tests/Tapper.Tests/CollectionClassesAnswer.tt | 8 +- tests/Tapper.Tests/DictionaryClassesAnswer.cs | 24 +-- tests/Tapper.Tests/DictionaryClassesAnswer.tt | 8 +- tests/Tapper.Tests/EnumTest.cs | 4 +- tests/Tapper.Tests/NestedNamespaceTest.cs | 10 +- tests/Tapper.Tests/PrimitiveClassesAnswer.cs | 144 +++++++++--------- tests/Tapper.Tests/PrimitiveClassesAnswer.tt | 8 +- tests/Tapper.Tests/TupleTest.cs | 18 +-- 10 files changed, 167 insertions(+), 167 deletions(-) diff --git a/src/Tapper/TypeScriptCodeGenerator.cs b/src/Tapper/TypeScriptCodeGenerator.cs index e61a61e..71d201c 100644 --- a/src/Tapper/TypeScriptCodeGenerator.cs +++ b/src/Tapper/TypeScriptCodeGenerator.cs @@ -70,7 +70,7 @@ private void AddEnum(INamedTypeSymbol typeSymbol, ref CodeWriter writer) { var members = typeSymbol.GetPublicFieldsAndProperties().IgnoreStatic().ToArray(); - writer.Append($"/** Transpied from {typeSymbol.ToDisplayString()} */{_newLine}"); + writer.Append($"/** Transpiled from {typeSymbol.ToDisplayString()} */{_newLine}"); writer.Append($"export enum {typeSymbol.Name} {{{_newLine}"); foreach (var member in members.OfType()) @@ -86,7 +86,7 @@ private void AddClassOrStruct(INamedTypeSymbol typeSymbol, ref CodeWriter writer { var members = typeSymbol.GetPublicFieldsAndProperties().IgnoreStatic().ToArray(); - writer.Append($"/** Transpied from {typeSymbol.ToDisplayString()} */{_newLine}"); + writer.Append($"/** Transpiled from {typeSymbol.ToDisplayString()} */{_newLine}"); writer.Append($"export type {typeSymbol.Name} = {{{_newLine}"); foreach (var member in members) @@ -99,7 +99,7 @@ private void AddClassOrStruct(INamedTypeSymbol typeSymbol, ref CodeWriter writer } // Add jdoc comment - writer.Append($"{_indent}/** Transpied from {memberTypeSymbol.ToDisplayString()} */{_newLine}"); + writer.Append($"{_indent}/** Transpiled from {memberTypeSymbol.ToDisplayString()} */{_newLine}"); writer.Append($"{_indent}{Transform(member.Name, _transpilationOptions.NamingStyle)}{(isNullable ? "?" : string.Empty)}: {TypeMapper.MapTo(memberTypeSymbol, _transpilationOptions)};{_newLine}"); } diff --git a/tests/Tapper.Tests/CollectionClassesAnswer.cs b/tests/Tapper.Tests/CollectionClassesAnswer.cs index e6c8646..5b1ae4c 100644 --- a/tests/Tapper.Tests/CollectionClassesAnswer.cs +++ b/tests/Tapper.Tests/CollectionClassesAnswer.cs @@ -14,160 +14,160 @@ public static class CollectionTypeTranspilationAnswer static CollectionTypeTranspilationAnswer() { - Dict[nameof(ClassIncludeCollectionFieldArray)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldArray */ + Dict[nameof(ClassIncludeCollectionFieldArray)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldArray */ export type ClassIncludeCollectionFieldArray = { - /** Transpied from System.Array */ + /** Transpiled from System.Array */ FieldOfArray: any[]; } "; - Dict[nameof(ClassIncludeCollectionFieldArraySegmentint)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldArraySegmentint */ + Dict[nameof(ClassIncludeCollectionFieldArraySegmentint)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldArraySegmentint */ export type ClassIncludeCollectionFieldArraySegmentint = { - /** Transpied from System.ArraySegment */ + /** Transpiled from System.ArraySegment */ FieldOfArraySegmentint: number[]; } "; - Dict[nameof(ClassIncludeCollectionFieldListfloat)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldListfloat */ + Dict[nameof(ClassIncludeCollectionFieldListfloat)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldListfloat */ export type ClassIncludeCollectionFieldListfloat = { - /** Transpied from System.Collections.Generic.List */ + /** Transpiled from System.Collections.Generic.List */ FieldOfListfloat: number[]; } "; - Dict[nameof(ClassIncludeCollectionFieldLinkedListstring)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldLinkedListstring */ + Dict[nameof(ClassIncludeCollectionFieldLinkedListstring)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldLinkedListstring */ export type ClassIncludeCollectionFieldLinkedListstring = { - /** Transpied from System.Collections.Generic.LinkedList */ + /** Transpiled from System.Collections.Generic.LinkedList */ FieldOfLinkedListstring: string[]; } "; - Dict[nameof(ClassIncludeCollectionFieldQueueGuid)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldQueueGuid */ + Dict[nameof(ClassIncludeCollectionFieldQueueGuid)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldQueueGuid */ export type ClassIncludeCollectionFieldQueueGuid = { - /** Transpied from System.Collections.Generic.Queue */ + /** Transpiled from System.Collections.Generic.Queue */ FieldOfQueueGuid: string[]; } "; - Dict[nameof(ClassIncludeCollectionFieldStackUri)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldStackUri */ + Dict[nameof(ClassIncludeCollectionFieldStackUri)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldStackUri */ export type ClassIncludeCollectionFieldStackUri = { - /** Transpied from System.Collections.Generic.Stack */ + /** Transpiled from System.Collections.Generic.Stack */ FieldOfStackUri: string[]; } "; - Dict[nameof(ClassIncludeCollectionFieldHashSetDateTime)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldHashSetDateTime */ + Dict[nameof(ClassIncludeCollectionFieldHashSetDateTime)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldHashSetDateTime */ export type ClassIncludeCollectionFieldHashSetDateTime = { - /** Transpied from System.Collections.Generic.HashSet */ + /** Transpiled from System.Collections.Generic.HashSet */ FieldOfHashSetDateTime: (Date | string)[]; } "; - Dict[nameof(ClassIncludeCollectionFieldIEnumerablebool)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldIEnumerablebool */ + Dict[nameof(ClassIncludeCollectionFieldIEnumerablebool)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldIEnumerablebool */ export type ClassIncludeCollectionFieldIEnumerablebool = { - /** Transpied from System.Collections.Generic.IEnumerable */ + /** Transpiled from System.Collections.Generic.IEnumerable */ FieldOfIEnumerablebool: boolean[]; } "; - Dict[nameof(ClassIncludeCollectionFieldIReadOnlyCollectionbyte)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldIReadOnlyCollectionbyte */ + Dict[nameof(ClassIncludeCollectionFieldIReadOnlyCollectionbyte)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldIReadOnlyCollectionbyte */ export type ClassIncludeCollectionFieldIReadOnlyCollectionbyte = { - /** Transpied from System.Collections.Generic.IReadOnlyCollection */ + /** Transpiled from System.Collections.Generic.IReadOnlyCollection */ FieldOfIReadOnlyCollectionbyte: number[]; } "; - Dict[nameof(ClassIncludeCollectionFieldIReadOnlyListobject)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldIReadOnlyListobject */ + Dict[nameof(ClassIncludeCollectionFieldIReadOnlyListobject)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldIReadOnlyListobject */ export type ClassIncludeCollectionFieldIReadOnlyListobject = { - /** Transpied from System.Collections.Generic.IReadOnlyList */ + /** Transpiled from System.Collections.Generic.IReadOnlyList */ FieldOfIReadOnlyListobject: any[]; } "; - Dict[nameof(ClassIncludeCollectionFieldICollectionstring)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldICollectionstring */ + Dict[nameof(ClassIncludeCollectionFieldICollectionstring)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldICollectionstring */ export type ClassIncludeCollectionFieldICollectionstring = { - /** Transpied from System.Collections.Generic.ICollection */ + /** Transpiled from System.Collections.Generic.ICollection */ FieldOfICollectionstring: string[]; } "; - Dict[nameof(ClassIncludeCollectionFieldIListbool)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldIListbool */ + Dict[nameof(ClassIncludeCollectionFieldIListbool)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldIListbool */ export type ClassIncludeCollectionFieldIListbool = { - /** Transpied from System.Collections.Generic.IList */ + /** Transpiled from System.Collections.Generic.IList */ FieldOfIListbool: boolean[]; } "; - Dict[nameof(ClassIncludeCollectionFieldISetsbyte)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldISetsbyte */ + Dict[nameof(ClassIncludeCollectionFieldISetsbyte)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionFieldISetsbyte */ export type ClassIncludeCollectionFieldISetsbyte = { - /** Transpied from System.Collections.Generic.ISet */ + /** Transpiled from System.Collections.Generic.ISet */ FieldOfISetsbyte: number[]; } "; - Dict[nameof(ClassIncludeCollectionPropertyArray)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyArray */ + Dict[nameof(ClassIncludeCollectionPropertyArray)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyArray */ export type ClassIncludeCollectionPropertyArray = { - /** Transpied from System.Array */ + /** Transpiled from System.Array */ PropertyOfArray: any[]; } "; - Dict[nameof(ClassIncludeCollectionPropertyArraySegmentint)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyArraySegmentint */ + Dict[nameof(ClassIncludeCollectionPropertyArraySegmentint)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyArraySegmentint */ export type ClassIncludeCollectionPropertyArraySegmentint = { - /** Transpied from System.ArraySegment */ + /** Transpiled from System.ArraySegment */ PropertyOfArraySegmentint: number[]; } "; - Dict[nameof(ClassIncludeCollectionPropertyListfloat)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyListfloat */ + Dict[nameof(ClassIncludeCollectionPropertyListfloat)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyListfloat */ export type ClassIncludeCollectionPropertyListfloat = { - /** Transpied from System.Collections.Generic.List */ + /** Transpiled from System.Collections.Generic.List */ PropertyOfListfloat: number[]; } "; - Dict[nameof(ClassIncludeCollectionPropertyLinkedListstring)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyLinkedListstring */ + Dict[nameof(ClassIncludeCollectionPropertyLinkedListstring)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyLinkedListstring */ export type ClassIncludeCollectionPropertyLinkedListstring = { - /** Transpied from System.Collections.Generic.LinkedList */ + /** Transpiled from System.Collections.Generic.LinkedList */ PropertyOfLinkedListstring: string[]; } "; - Dict[nameof(ClassIncludeCollectionPropertyQueueGuid)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyQueueGuid */ + Dict[nameof(ClassIncludeCollectionPropertyQueueGuid)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyQueueGuid */ export type ClassIncludeCollectionPropertyQueueGuid = { - /** Transpied from System.Collections.Generic.Queue */ + /** Transpiled from System.Collections.Generic.Queue */ PropertyOfQueueGuid: string[]; } "; - Dict[nameof(ClassIncludeCollectionPropertyStackUri)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyStackUri */ + Dict[nameof(ClassIncludeCollectionPropertyStackUri)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyStackUri */ export type ClassIncludeCollectionPropertyStackUri = { - /** Transpied from System.Collections.Generic.Stack */ + /** Transpiled from System.Collections.Generic.Stack */ PropertyOfStackUri: string[]; } "; - Dict[nameof(ClassIncludeCollectionPropertyHashSetDateTime)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyHashSetDateTime */ + Dict[nameof(ClassIncludeCollectionPropertyHashSetDateTime)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyHashSetDateTime */ export type ClassIncludeCollectionPropertyHashSetDateTime = { - /** Transpied from System.Collections.Generic.HashSet */ + /** Transpiled from System.Collections.Generic.HashSet */ PropertyOfHashSetDateTime: (Date | string)[]; } "; - Dict[nameof(ClassIncludeCollectionPropertyIEnumerablebool)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyIEnumerablebool */ + Dict[nameof(ClassIncludeCollectionPropertyIEnumerablebool)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyIEnumerablebool */ export type ClassIncludeCollectionPropertyIEnumerablebool = { - /** Transpied from System.Collections.Generic.IEnumerable */ + /** Transpiled from System.Collections.Generic.IEnumerable */ PropertyOfIEnumerablebool: boolean[]; } "; - Dict[nameof(ClassIncludeCollectionPropertyIReadOnlyCollectionbyte)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyIReadOnlyCollectionbyte */ + Dict[nameof(ClassIncludeCollectionPropertyIReadOnlyCollectionbyte)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyIReadOnlyCollectionbyte */ export type ClassIncludeCollectionPropertyIReadOnlyCollectionbyte = { - /** Transpied from System.Collections.Generic.IReadOnlyCollection */ + /** Transpiled from System.Collections.Generic.IReadOnlyCollection */ PropertyOfIReadOnlyCollectionbyte: number[]; } "; - Dict[nameof(ClassIncludeCollectionPropertyIReadOnlyListobject)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyIReadOnlyListobject */ + Dict[nameof(ClassIncludeCollectionPropertyIReadOnlyListobject)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyIReadOnlyListobject */ export type ClassIncludeCollectionPropertyIReadOnlyListobject = { - /** Transpied from System.Collections.Generic.IReadOnlyList */ + /** Transpiled from System.Collections.Generic.IReadOnlyList */ PropertyOfIReadOnlyListobject: any[]; } "; - Dict[nameof(ClassIncludeCollectionPropertyICollectionstring)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyICollectionstring */ + Dict[nameof(ClassIncludeCollectionPropertyICollectionstring)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyICollectionstring */ export type ClassIncludeCollectionPropertyICollectionstring = { - /** Transpied from System.Collections.Generic.ICollection */ + /** Transpiled from System.Collections.Generic.ICollection */ PropertyOfICollectionstring: string[]; } "; - Dict[nameof(ClassIncludeCollectionPropertyIListbool)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyIListbool */ + Dict[nameof(ClassIncludeCollectionPropertyIListbool)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyIListbool */ export type ClassIncludeCollectionPropertyIListbool = { - /** Transpied from System.Collections.Generic.IList */ + /** Transpiled from System.Collections.Generic.IList */ PropertyOfIListbool: boolean[]; } "; - Dict[nameof(ClassIncludeCollectionPropertyISetsbyte)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyISetsbyte */ + Dict[nameof(ClassIncludeCollectionPropertyISetsbyte)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionPropertyISetsbyte */ export type ClassIncludeCollectionPropertyISetsbyte = { - /** Transpied from System.Collections.Generic.ISet */ + /** Transpiled from System.Collections.Generic.ISet */ PropertyOfISetsbyte: number[]; } "; diff --git a/tests/Tapper.Tests/CollectionClassesAnswer.tt b/tests/Tapper.Tests/CollectionClassesAnswer.tt index 65000cf..4698966 100644 --- a/tests/Tapper.Tests/CollectionClassesAnswer.tt +++ b/tests/Tapper.Tests/CollectionClassesAnswer.tt @@ -62,18 +62,18 @@ public static class CollectionTypeTranspilationAnswer static CollectionTypeTranspilationAnswer() { <# foreach(var type in _collectionTypeMap){ #> - Dict[nameof(ClassIncludeCollectionField<#= Format(type.Key) #>)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionField<#= Format(type.Key) #> */ + Dict[nameof(ClassIncludeCollectionField<#= Format(type.Key) #>)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionField<#= Format(type.Key) #> */ export type ClassIncludeCollectionField<#= Format(type.Key) #> = { - /** Transpied from <#= _collectionType[type.Key] #> */ + /** Transpiled from <#= _collectionType[type.Key] #> */ FieldOf<#= Format(type.Key) #>: <#= type.Value #>; } "; <# } #> <# foreach(var type in _collectionTypeMap){ #> - Dict[nameof(ClassIncludeCollectionProperty<#= Format(type.Key) #>)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeCollectionProperty<#= Format(type.Key) #> */ + Dict[nameof(ClassIncludeCollectionProperty<#= Format(type.Key) #>)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeCollectionProperty<#= Format(type.Key) #> */ export type ClassIncludeCollectionProperty<#= Format(type.Key) #> = { - /** Transpied from <#= _collectionType[type.Key] #> */ + /** Transpiled from <#= _collectionType[type.Key] #> */ PropertyOf<#= Format(type.Key) #>: <#= type.Value #>; } "; diff --git a/tests/Tapper.Tests/DictionaryClassesAnswer.cs b/tests/Tapper.Tests/DictionaryClassesAnswer.cs index 25b9e9a..ce44041 100644 --- a/tests/Tapper.Tests/DictionaryClassesAnswer.cs +++ b/tests/Tapper.Tests/DictionaryClassesAnswer.cs @@ -14,40 +14,40 @@ public static class DictionaryTypeTranspilationAnswer static DictionaryTypeTranspilationAnswer() { - Dict[nameof(ClassIncludeDictionaryFieldDictionaryintstring)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeDictionaryFieldDictionaryintstring */ + Dict[nameof(ClassIncludeDictionaryFieldDictionaryintstring)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeDictionaryFieldDictionaryintstring */ export type ClassIncludeDictionaryFieldDictionaryintstring = { - /** Transpied from System.Collections.Generic.Dictionary */ + /** Transpiled from System.Collections.Generic.Dictionary */ FieldOfDictionaryintstring: { [key: number]: string }; } "; - Dict[nameof(ClassIncludeDictionaryFieldIDictionaryfloatGuid)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeDictionaryFieldIDictionaryfloatGuid */ + Dict[nameof(ClassIncludeDictionaryFieldIDictionaryfloatGuid)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeDictionaryFieldIDictionaryfloatGuid */ export type ClassIncludeDictionaryFieldIDictionaryfloatGuid = { - /** Transpied from System.Collections.Generic.IDictionary */ + /** Transpiled from System.Collections.Generic.IDictionary */ FieldOfIDictionaryfloatGuid: { [key: number]: string }; } "; - Dict[nameof(ClassIncludeDictionaryFieldIReadOnlyDictionarystringDateTime)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeDictionaryFieldIReadOnlyDictionarystringDateTime */ + Dict[nameof(ClassIncludeDictionaryFieldIReadOnlyDictionarystringDateTime)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeDictionaryFieldIReadOnlyDictionarystringDateTime */ export type ClassIncludeDictionaryFieldIReadOnlyDictionarystringDateTime = { - /** Transpied from System.Collections.Generic.IReadOnlyDictionary */ + /** Transpiled from System.Collections.Generic.IReadOnlyDictionary */ FieldOfIReadOnlyDictionarystringDateTime: { [key: string]: (Date | string) }; } "; - Dict[nameof(ClassIncludeDictionaryPropertyDictionaryintstring)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeDictionaryPropertyDictionaryintstring */ + Dict[nameof(ClassIncludeDictionaryPropertyDictionaryintstring)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeDictionaryPropertyDictionaryintstring */ export type ClassIncludeDictionaryPropertyDictionaryintstring = { - /** Transpied from System.Collections.Generic.Dictionary */ + /** Transpiled from System.Collections.Generic.Dictionary */ PropertyOfDictionaryintstring: { [key: number]: string }; } "; - Dict[nameof(ClassIncludeDictionaryPropertyIDictionaryfloatGuid)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeDictionaryPropertyIDictionaryfloatGuid */ + Dict[nameof(ClassIncludeDictionaryPropertyIDictionaryfloatGuid)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeDictionaryPropertyIDictionaryfloatGuid */ export type ClassIncludeDictionaryPropertyIDictionaryfloatGuid = { - /** Transpied from System.Collections.Generic.IDictionary */ + /** Transpiled from System.Collections.Generic.IDictionary */ PropertyOfIDictionaryfloatGuid: { [key: number]: string }; } "; - Dict[nameof(ClassIncludeDictionaryPropertyIReadOnlyDictionarystringDateTime)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeDictionaryPropertyIReadOnlyDictionarystringDateTime */ + Dict[nameof(ClassIncludeDictionaryPropertyIReadOnlyDictionarystringDateTime)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeDictionaryPropertyIReadOnlyDictionarystringDateTime */ export type ClassIncludeDictionaryPropertyIReadOnlyDictionarystringDateTime = { - /** Transpied from System.Collections.Generic.IReadOnlyDictionary */ + /** Transpiled from System.Collections.Generic.IReadOnlyDictionary */ PropertyOfIReadOnlyDictionarystringDateTime: { [key: string]: (Date | string) }; } "; diff --git a/tests/Tapper.Tests/DictionaryClassesAnswer.tt b/tests/Tapper.Tests/DictionaryClassesAnswer.tt index d94ea4f..401aab6 100644 --- a/tests/Tapper.Tests/DictionaryClassesAnswer.tt +++ b/tests/Tapper.Tests/DictionaryClassesAnswer.tt @@ -42,18 +42,18 @@ public static class DictionaryTypeTranspilationAnswer static DictionaryTypeTranspilationAnswer() { <# foreach(var type in _dictionaryTypeMap){ #> - Dict[nameof(ClassIncludeDictionaryField<#= Format(type.Key) #>)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeDictionaryField<#= Format(type.Key) #> */ + Dict[nameof(ClassIncludeDictionaryField<#= Format(type.Key) #>)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeDictionaryField<#= Format(type.Key) #> */ export type ClassIncludeDictionaryField<#= Format(type.Key) #> = { - /** Transpied from <#= _dictonaryType[type.Key] #> */ + /** Transpiled from <#= _dictonaryType[type.Key] #> */ FieldOf<#= Format(type.Key) #>: <#= type.Value #>; } "; <# } #> <# foreach(var type in _dictionaryTypeMap){ #> - Dict[nameof(ClassIncludeDictionaryProperty<#= Format(type.Key) #>)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludeDictionaryProperty<#= Format(type.Key) #> */ + Dict[nameof(ClassIncludeDictionaryProperty<#= Format(type.Key) #>)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludeDictionaryProperty<#= Format(type.Key) #> */ export type ClassIncludeDictionaryProperty<#= Format(type.Key) #> = { - /** Transpied from <#= _dictonaryType[type.Key] #> */ + /** Transpiled from <#= _dictonaryType[type.Key] #> */ PropertyOf<#= Format(type.Key) #>: <#= type.Value #>; } "; diff --git a/tests/Tapper.Tests/EnumTest.cs b/tests/Tapper.Tests/EnumTest.cs index 5bdc4fb..9b775e4 100644 --- a/tests/Tapper.Tests/EnumTest.cs +++ b/tests/Tapper.Tests/EnumTest.cs @@ -33,7 +33,7 @@ public void Test_Enum1() codeGenerator.AddType(typeSymbol, ref writer); var code = writer.ToString(); - var gt = @"/** Transpied from Tapper.Test.SourceTypes.Enum1 */ + var gt = @"/** Transpiled from Tapper.Test.SourceTypes.Enum1 */ export enum Enum1 { None = 0, Value1 = 1, @@ -60,7 +60,7 @@ public void Test_Enum2() codeGenerator.AddType(typeSymbol, ref writer); var code = writer.ToString(); - var gt = @"/** Transpied from Tapper.Test.SourceTypes.Enum2 */ + var gt = @"/** Transpiled from Tapper.Test.SourceTypes.Enum2 */ export enum Enum2 { None = 4, Value1 = 8, diff --git a/tests/Tapper.Tests/NestedNamespaceTest.cs b/tests/Tapper.Tests/NestedNamespaceTest.cs index a1b7723..67a5250 100644 --- a/tests/Tapper.Tests/NestedNamespaceTest.cs +++ b/tests/Tapper.Tests/NestedNamespaceTest.cs @@ -33,15 +33,15 @@ public void Test1() codeGenerator.AddType(typeSymbol, ref writer); var code = writer.ToString(); - var gt = @"/** Transpied from Tapper.Test.SourceTypes.Space3.NastingNamespaceType */ + var gt = @"/** Transpiled from Tapper.Test.SourceTypes.Space3.NastingNamespaceType */ export type NastingNamespaceType = { - /** Transpied from Tapper.Test.SourceTypes.Space1.CustomType? */ + /** Transpiled from Tapper.Test.SourceTypes.Space1.CustomType? */ Value?: CustomType; - /** Transpied from Tapper.Test.SourceTypes.Space1.Sub.CustomType2 */ + /** Transpiled from Tapper.Test.SourceTypes.Space1.Sub.CustomType2 */ Name: CustomType2; - /** Transpied from Tapper.Test.SourceTypes.Space1.Sub.CustomType3? */ + /** Transpiled from Tapper.Test.SourceTypes.Space1.Sub.CustomType3? */ Name2?: CustomType3; - /** Transpied from System.Collections.Generic.List */ + /** Transpiled from System.Collections.Generic.List */ List: CustomType4[]; } "; diff --git a/tests/Tapper.Tests/PrimitiveClassesAnswer.cs b/tests/Tapper.Tests/PrimitiveClassesAnswer.cs index 37090ea..0c7687c 100644 --- a/tests/Tapper.Tests/PrimitiveClassesAnswer.cs +++ b/tests/Tapper.Tests/PrimitiveClassesAnswer.cs @@ -14,220 +14,220 @@ public static class PrimitiveTypeTranspilationAnswer static PrimitiveTypeTranspilationAnswer() { - Dict[nameof(ClassIncludePrimitiveFieldSystemBoolean)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemBoolean */ + Dict[nameof(ClassIncludePrimitiveFieldSystemBoolean)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemBoolean */ export type ClassIncludePrimitiveFieldSystemBoolean = { - /** Transpied from bool */ + /** Transpiled from bool */ FieldOfSystemBoolean: boolean; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemByte)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemByte */ + Dict[nameof(ClassIncludePrimitiveFieldSystemByte)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemByte */ export type ClassIncludePrimitiveFieldSystemByte = { - /** Transpied from byte */ + /** Transpiled from byte */ FieldOfSystemByte: number; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemSByte)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemSByte */ + Dict[nameof(ClassIncludePrimitiveFieldSystemSByte)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemSByte */ export type ClassIncludePrimitiveFieldSystemSByte = { - /** Transpied from sbyte */ + /** Transpiled from sbyte */ FieldOfSystemSByte: number; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemChar)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemChar */ + Dict[nameof(ClassIncludePrimitiveFieldSystemChar)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemChar */ export type ClassIncludePrimitiveFieldSystemChar = { - /** Transpied from char */ + /** Transpiled from char */ FieldOfSystemChar: string; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemDecimal)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemDecimal */ + Dict[nameof(ClassIncludePrimitiveFieldSystemDecimal)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemDecimal */ export type ClassIncludePrimitiveFieldSystemDecimal = { - /** Transpied from decimal */ + /** Transpiled from decimal */ FieldOfSystemDecimal: number; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemDouble)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemDouble */ + Dict[nameof(ClassIncludePrimitiveFieldSystemDouble)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemDouble */ export type ClassIncludePrimitiveFieldSystemDouble = { - /** Transpied from double */ + /** Transpiled from double */ FieldOfSystemDouble: number; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemSingle)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemSingle */ + Dict[nameof(ClassIncludePrimitiveFieldSystemSingle)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemSingle */ export type ClassIncludePrimitiveFieldSystemSingle = { - /** Transpied from float */ + /** Transpiled from float */ FieldOfSystemSingle: number; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemInt32)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemInt32 */ + Dict[nameof(ClassIncludePrimitiveFieldSystemInt32)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemInt32 */ export type ClassIncludePrimitiveFieldSystemInt32 = { - /** Transpied from int */ + /** Transpiled from int */ FieldOfSystemInt32: number; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemUInt32)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemUInt32 */ + Dict[nameof(ClassIncludePrimitiveFieldSystemUInt32)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemUInt32 */ export type ClassIncludePrimitiveFieldSystemUInt32 = { - /** Transpied from uint */ + /** Transpiled from uint */ FieldOfSystemUInt32: number; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemInt64)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemInt64 */ + Dict[nameof(ClassIncludePrimitiveFieldSystemInt64)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemInt64 */ export type ClassIncludePrimitiveFieldSystemInt64 = { - /** Transpied from long */ + /** Transpiled from long */ FieldOfSystemInt64: number; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemUInt64)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemUInt64 */ + Dict[nameof(ClassIncludePrimitiveFieldSystemUInt64)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemUInt64 */ export type ClassIncludePrimitiveFieldSystemUInt64 = { - /** Transpied from ulong */ + /** Transpiled from ulong */ FieldOfSystemUInt64: number; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemInt16)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemInt16 */ + Dict[nameof(ClassIncludePrimitiveFieldSystemInt16)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemInt16 */ export type ClassIncludePrimitiveFieldSystemInt16 = { - /** Transpied from short */ + /** Transpiled from short */ FieldOfSystemInt16: number; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemUInt16)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemUInt16 */ + Dict[nameof(ClassIncludePrimitiveFieldSystemUInt16)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemUInt16 */ export type ClassIncludePrimitiveFieldSystemUInt16 = { - /** Transpied from ushort */ + /** Transpiled from ushort */ FieldOfSystemUInt16: number; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemObject)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemObject */ + Dict[nameof(ClassIncludePrimitiveFieldSystemObject)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemObject */ export type ClassIncludePrimitiveFieldSystemObject = { - /** Transpied from object? */ + /** Transpiled from object? */ FieldOfSystemObject?: any; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemString)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemString */ + Dict[nameof(ClassIncludePrimitiveFieldSystemString)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemString */ export type ClassIncludePrimitiveFieldSystemString = { - /** Transpied from string? */ + /** Transpiled from string? */ FieldOfSystemString?: string; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemUri)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemUri */ + Dict[nameof(ClassIncludePrimitiveFieldSystemUri)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemUri */ export type ClassIncludePrimitiveFieldSystemUri = { - /** Transpied from System.Uri? */ + /** Transpiled from System.Uri? */ FieldOfSystemUri?: string; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemGuid)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemGuid */ + Dict[nameof(ClassIncludePrimitiveFieldSystemGuid)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemGuid */ export type ClassIncludePrimitiveFieldSystemGuid = { - /** Transpied from System.Guid */ + /** Transpiled from System.Guid */ FieldOfSystemGuid: string; } "; - Dict[nameof(ClassIncludePrimitiveFieldSystemDateTime)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemDateTime */ + Dict[nameof(ClassIncludePrimitiveFieldSystemDateTime)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveFieldSystemDateTime */ export type ClassIncludePrimitiveFieldSystemDateTime = { - /** Transpied from System.DateTime */ + /** Transpiled from System.DateTime */ FieldOfSystemDateTime: (Date | string); } "; - Dict["ClassIncludePrimitivePropertySystemBoolean"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemBoolean */ + Dict["ClassIncludePrimitivePropertySystemBoolean"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemBoolean */ export type ClassIncludePrimitivePropertySystemBoolean = { - /** Transpied from bool */ + /** Transpiled from bool */ PropertyOfSystemBoolean: boolean; } "; - Dict["ClassIncludePrimitivePropertySystemByte"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemByte */ + Dict["ClassIncludePrimitivePropertySystemByte"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemByte */ export type ClassIncludePrimitivePropertySystemByte = { - /** Transpied from byte */ + /** Transpiled from byte */ PropertyOfSystemByte: number; } "; - Dict["ClassIncludePrimitivePropertySystemSByte"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemSByte */ + Dict["ClassIncludePrimitivePropertySystemSByte"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemSByte */ export type ClassIncludePrimitivePropertySystemSByte = { - /** Transpied from sbyte */ + /** Transpiled from sbyte */ PropertyOfSystemSByte: number; } "; - Dict["ClassIncludePrimitivePropertySystemChar"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemChar */ + Dict["ClassIncludePrimitivePropertySystemChar"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemChar */ export type ClassIncludePrimitivePropertySystemChar = { - /** Transpied from char */ + /** Transpiled from char */ PropertyOfSystemChar: string; } "; - Dict["ClassIncludePrimitivePropertySystemDecimal"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemDecimal */ + Dict["ClassIncludePrimitivePropertySystemDecimal"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemDecimal */ export type ClassIncludePrimitivePropertySystemDecimal = { - /** Transpied from decimal */ + /** Transpiled from decimal */ PropertyOfSystemDecimal: number; } "; - Dict["ClassIncludePrimitivePropertySystemDouble"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemDouble */ + Dict["ClassIncludePrimitivePropertySystemDouble"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemDouble */ export type ClassIncludePrimitivePropertySystemDouble = { - /** Transpied from double */ + /** Transpiled from double */ PropertyOfSystemDouble: number; } "; - Dict["ClassIncludePrimitivePropertySystemSingle"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemSingle */ + Dict["ClassIncludePrimitivePropertySystemSingle"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemSingle */ export type ClassIncludePrimitivePropertySystemSingle = { - /** Transpied from float */ + /** Transpiled from float */ PropertyOfSystemSingle: number; } "; - Dict["ClassIncludePrimitivePropertySystemInt32"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemInt32 */ + Dict["ClassIncludePrimitivePropertySystemInt32"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemInt32 */ export type ClassIncludePrimitivePropertySystemInt32 = { - /** Transpied from int */ + /** Transpiled from int */ PropertyOfSystemInt32: number; } "; - Dict["ClassIncludePrimitivePropertySystemUInt32"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemUInt32 */ + Dict["ClassIncludePrimitivePropertySystemUInt32"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemUInt32 */ export type ClassIncludePrimitivePropertySystemUInt32 = { - /** Transpied from uint */ + /** Transpiled from uint */ PropertyOfSystemUInt32: number; } "; - Dict["ClassIncludePrimitivePropertySystemInt64"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemInt64 */ + Dict["ClassIncludePrimitivePropertySystemInt64"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemInt64 */ export type ClassIncludePrimitivePropertySystemInt64 = { - /** Transpied from long */ + /** Transpiled from long */ PropertyOfSystemInt64: number; } "; - Dict["ClassIncludePrimitivePropertySystemUInt64"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemUInt64 */ + Dict["ClassIncludePrimitivePropertySystemUInt64"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemUInt64 */ export type ClassIncludePrimitivePropertySystemUInt64 = { - /** Transpied from ulong */ + /** Transpiled from ulong */ PropertyOfSystemUInt64: number; } "; - Dict["ClassIncludePrimitivePropertySystemInt16"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemInt16 */ + Dict["ClassIncludePrimitivePropertySystemInt16"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemInt16 */ export type ClassIncludePrimitivePropertySystemInt16 = { - /** Transpied from short */ + /** Transpiled from short */ PropertyOfSystemInt16: number; } "; - Dict["ClassIncludePrimitivePropertySystemUInt16"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemUInt16 */ + Dict["ClassIncludePrimitivePropertySystemUInt16"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemUInt16 */ export type ClassIncludePrimitivePropertySystemUInt16 = { - /** Transpied from ushort */ + /** Transpiled from ushort */ PropertyOfSystemUInt16: number; } "; - Dict["ClassIncludePrimitivePropertySystemObject"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemObject */ + Dict["ClassIncludePrimitivePropertySystemObject"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemObject */ export type ClassIncludePrimitivePropertySystemObject = { - /** Transpied from object? */ + /** Transpiled from object? */ PropertyOfSystemObject?: any; } "; - Dict["ClassIncludePrimitivePropertySystemString"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemString */ + Dict["ClassIncludePrimitivePropertySystemString"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemString */ export type ClassIncludePrimitivePropertySystemString = { - /** Transpied from string? */ + /** Transpiled from string? */ PropertyOfSystemString?: string; } "; - Dict["ClassIncludePrimitivePropertySystemUri"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemUri */ + Dict["ClassIncludePrimitivePropertySystemUri"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemUri */ export type ClassIncludePrimitivePropertySystemUri = { - /** Transpied from System.Uri? */ + /** Transpiled from System.Uri? */ PropertyOfSystemUri?: string; } "; - Dict["ClassIncludePrimitivePropertySystemGuid"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemGuid */ + Dict["ClassIncludePrimitivePropertySystemGuid"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemGuid */ export type ClassIncludePrimitivePropertySystemGuid = { - /** Transpied from System.Guid */ + /** Transpiled from System.Guid */ PropertyOfSystemGuid: string; } "; - Dict["ClassIncludePrimitivePropertySystemDateTime"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemDateTime */ + Dict["ClassIncludePrimitivePropertySystemDateTime"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitivePropertySystemDateTime */ export type ClassIncludePrimitivePropertySystemDateTime = { - /** Transpied from System.DateTime */ + /** Transpiled from System.DateTime */ PropertyOfSystemDateTime: (Date | string); } "; diff --git a/tests/Tapper.Tests/PrimitiveClassesAnswer.tt b/tests/Tapper.Tests/PrimitiveClassesAnswer.tt index 54e5687..86e5a5b 100644 --- a/tests/Tapper.Tests/PrimitiveClassesAnswer.tt +++ b/tests/Tapper.Tests/PrimitiveClassesAnswer.tt @@ -67,18 +67,18 @@ public static class PrimitiveTypeTranspilationAnswer static PrimitiveTypeTranspilationAnswer() { <# foreach(var type in PrimitiveTypeMap){ #> - Dict[nameof(ClassIncludePrimitiveField<#= type.Key.FullName.Replace(".", null) #>)] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveField<#= type.Key.FullName.Replace(".", null) #> */ + Dict[nameof(ClassIncludePrimitiveField<#= type.Key.FullName.Replace(".", null) #>)] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveField<#= type.Key.FullName.Replace(".", null) #> */ export type ClassIncludePrimitiveField<#= type.Key.FullName.Replace(".", null) #> = { - /** Transpied from <#= PrimitiveTypeNameMap[type.Key] #><#= type.Key.IsClass ? "?" : "" #> */ + /** Transpiled from <#= PrimitiveTypeNameMap[type.Key] #><#= type.Key.IsClass ? "?" : "" #> */ FieldOf<#= type.Key.FullName.Replace(".", null) #><#= type.Key.IsClass ? "?" : "" #>: <#= type.Value #>; } "; <# } #> <# foreach(var type in PrimitiveTypeMap){ #> - Dict["ClassIncludePrimitiveProperty<#= type.Key.FullName.Replace(".", null) #>"] = @"/** Transpied from Tapper.Tests.SourceTypes.ClassIncludePrimitiveProperty<#= type.Key.FullName.Replace(".", null) #> */ + Dict["ClassIncludePrimitiveProperty<#= type.Key.FullName.Replace(".", null) #>"] = @"/** Transpiled from Tapper.Tests.SourceTypes.ClassIncludePrimitiveProperty<#= type.Key.FullName.Replace(".", null) #> */ export type ClassIncludePrimitiveProperty<#= type.Key.FullName.Replace(".", null) #> = { - /** Transpied from <#= PrimitiveTypeNameMap[type.Key] #><#= type.Key.IsClass ? "?" : "" #> */ + /** Transpiled from <#= PrimitiveTypeNameMap[type.Key] #><#= type.Key.IsClass ? "?" : "" #> */ PropertyOf<#= type.Key.FullName.Replace(".", null) #><#= type.Key.IsClass ? "?" : "" #>: <#= type.Value #>; } "; diff --git a/tests/Tapper.Tests/TupleTest.cs b/tests/Tapper.Tests/TupleTest.cs index e6afaaf..3121901 100644 --- a/tests/Tapper.Tests/TupleTest.cs +++ b/tests/Tapper.Tests/TupleTest.cs @@ -28,9 +28,9 @@ public void Test_SimpleTupleClass() codeGenerator.AddType(typeSymbol, ref writer); var code = writer.ToString(); - var gt = @"/** Transpied from Tapper.Test.SourceTypes.Tuple.SimpleTupleClass */ + var gt = @"/** Transpiled from Tapper.Test.SourceTypes.Tuple.SimpleTupleClass */ export type SimpleTupleClass = { - /** Transpied from (int, string) */ + /** Transpiled from (int, string) */ TapluField: [number, string]; } "; @@ -55,9 +55,9 @@ public void Test_TupleClassIncludeNullable() codeGenerator.AddType(typeSymbol, ref writer); var code = writer.ToString(); - var gt = @"/** Transpied from Tapper.Test.SourceTypes.Tuple.TupleClassIncludeNullable */ + var gt = @"/** Transpiled from Tapper.Test.SourceTypes.Tuple.TupleClassIncludeNullable */ export type TupleClassIncludeNullable = { - /** Transpied from (int?, System.Guid, System.DateTime) */ + /** Transpiled from (int?, System.Guid, System.DateTime) */ TapluField: [(number | undefined), string, (Date | string)]; } "; @@ -82,9 +82,9 @@ public void Test_TupleClassNullableField() codeGenerator.AddType(typeSymbol, ref writer); var code = writer.ToString(); - var gt = @"/** Transpied from Tapper.Test.SourceTypes.Tuple.TupleClassNullableField */ + var gt = @"/** Transpiled from Tapper.Test.SourceTypes.Tuple.TupleClassNullableField */ export type TupleClassNullableField = { - /** Transpied from (int?, System.Guid, System.DateTime) */ + /** Transpiled from (int?, System.Guid, System.DateTime) */ TapluField?: [(number | undefined), string, (Date | string)]; } "; @@ -108,11 +108,11 @@ public void Test_TupleClassIncludeCustomType() codeGenerator.AddType(typeSymbol, ref writer); var code = writer.ToString(); - var gt = @"/** Transpied from Tapper.Test.SourceTypes.Tuple.TupleClassIncludeCustomType */ + var gt = @"/** Transpiled from Tapper.Test.SourceTypes.Tuple.TupleClassIncludeCustomType */ export type TupleClassIncludeCustomType = { - /** Transpied from (int?, Tapper.Test.SourceTypes.Tuple.CustomType, System.DateTime) */ + /** Transpiled from (int?, Tapper.Test.SourceTypes.Tuple.CustomType, System.DateTime) */ TapluField?: [(number | undefined), CustomType, (Date | string)]; - /** Transpied from (int, Tapper.Test.SourceTypes.Tuple.CustomType?, System.DateTime?) */ + /** Transpiled from (int, Tapper.Test.SourceTypes.Tuple.CustomType?, System.DateTime?) */ TapluPropery: [number, (CustomType | undefined), ((Date | string) | undefined)]; } ";