-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#38) ImportLogic: process generic parameters in type signatures
- Loading branch information
Showing
18 changed files
with
76 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...sts.CheckRefasmedTypeOmitNonApi_typeName=RefasmerTestAssembly.BlittableGraph.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
public type: RefasmerTestAssembly.BlittableGraph | ||
public struct: RefasmerTestAssembly.BlittableGraph | ||
fields: | ||
- <SyntheticNonEmptyStructMarker>: System.Int32 |
2 changes: 1 addition & 1 deletion
2
...ypeOmitNonApi_typeName=RefasmerTestAssembly.BlittableStructWithPrivateFields.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
public type: RefasmerTestAssembly.BlittableStructWithPrivateFields | ||
public struct: RefasmerTestAssembly.BlittableStructWithPrivateFields | ||
fields: | ||
- <SyntheticNonEmptyStructMarker>: System.Int32 |
2 changes: 1 addition & 1 deletion
2
...smedTypeOmitNonApi_typeName=RefasmerTestAssembly.EmptyStructWithStaticMember.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
public type: RefasmerTestAssembly.EmptyStructWithStaticMember | ||
public struct: RefasmerTestAssembly.EmptyStructWithStaticMember |
2 changes: 1 addition & 1 deletion
2
....CheckRefasmedTypeOmitNonApi_typeName=RefasmerTestAssembly.NonBlittableGraph.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
public type: RefasmerTestAssembly.NonBlittableGraph | ||
public struct: RefasmerTestAssembly.NonBlittableGraph | ||
fields: | ||
- <SyntheticNonEmptyStructMarker>: System.Int32 |
2 changes: 1 addition & 1 deletion
2
...OmitNonApi_typeName=RefasmerTestAssembly.NonBlittableStructWithPrivateFields.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
public type: RefasmerTestAssembly.NonBlittableStructWithPrivateFields | ||
public struct: RefasmerTestAssembly.NonBlittableStructWithPrivateFields | ||
fields: | ||
- <SyntheticNonEmptyStructMarker>: System.Int32 |
2 changes: 1 addition & 1 deletion
2
...dTypeOmitNonApi_typeName=RefasmerTestAssembly.NonEmptyStructWithStaticMember.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
public type: RefasmerTestAssembly.NonEmptyStructWithStaticMember | ||
public struct: RefasmerTestAssembly.NonEmptyStructWithStaticMember | ||
fields: | ||
- <SyntheticNonEmptyStructMarker>: System.Int32 |
2 changes: 1 addition & 1 deletion
2
...medTypeOmitNonApi_typeName=RefasmerTestAssembly.PublicClassWithPrivateFields.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...edTypeOmitNonApi_typeName=RefasmerTestAssembly.PublicStructWithPrivateFields.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
public type: RefasmerTestAssembly.PublicStructWithPrivateFields | ||
public struct: RefasmerTestAssembly.PublicStructWithPrivateFields | ||
fields: | ||
- PublicInt: System.Int32 |
4 changes: 2 additions & 2 deletions
4
...medTypeOmitNonApi_typeName=RefasmerTestAssembly.StructWithNestedPrivateTypes.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
public type: RefasmerTestAssembly.StructWithNestedPrivateTypes | ||
public struct: RefasmerTestAssembly.StructWithNestedPrivateTypes | ||
fields: | ||
- <SyntheticNonEmptyStructMarker>: System.Int32 | ||
types: | ||
internal type: RefasmerTestAssembly.StructWithNestedPrivateTypes/UnusedPublicStruct | ||
internal struct: RefasmerTestAssembly.StructWithNestedPrivateTypes/UnusedPublicStruct | ||
fields: | ||
- <SyntheticNonEmptyStructMarker>: System.Int32 |
2 changes: 1 addition & 1 deletion
2
...dTypeOmitNonApi_typeName=RefasmerTestAssembly.UnsafeClassWithFunctionPointer.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
public type: RefasmerTestAssembly.UnsafeClassWithFunctionPointer | ||
public class: RefasmerTestAssembly.UnsafeClassWithFunctionPointer | ||
methods: | ||
- MethodWithFunctionPointer(method System.Void *() functionPointer): System.Void: | ||
- .ctor(): System.Void: |
6 changes: 3 additions & 3 deletions
6
...ationTests.CheckRefasmedType_typeName=RefasmerTestAssembly.NonBlittableGraph.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
public type: RefasmerTestAssembly.NonBlittableGraph | ||
public struct: RefasmerTestAssembly.NonBlittableGraph | ||
fields: | ||
- x: RefasmerTestAssembly.NonBlittableGraph/DubiouslyBlittableType | ||
types: | ||
private type: RefasmerTestAssembly.NonBlittableGraph/DubiouslyBlittableType | ||
private struct: RefasmerTestAssembly.NonBlittableGraph/DubiouslyBlittableType | ||
fields: | ||
- x: RefasmerTestAssembly.NonBlittableGraph/DubiouslyBlittableType/NonBlittableType | ||
types: | ||
private type: RefasmerTestAssembly.NonBlittableGraph/DubiouslyBlittableType/NonBlittableType | ||
private struct: RefasmerTestAssembly.NonBlittableGraph/DubiouslyBlittableType/NonBlittableType | ||
fields: | ||
- x: System.String |
4 changes: 2 additions & 2 deletions
4
...nTests.InternalTypeInPublicApi_mainClassName=PublicClassImplementingInternal.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
public type: RefasmerTestAssembly.PublicClassImplementingInternal | ||
public class: RefasmerTestAssembly.PublicClassImplementingInternal | ||
methods: | ||
- .ctor(): System.Void: | ||
internal type: RefasmerTestAssembly.InterfaceToBeMarkedInternal | ||
internal interface: RefasmerTestAssembly.IInterface1ToBeMarkedInternal |
9 changes: 9 additions & 0 deletions
9
...s.InternalTypeInPublicApi_mainClassName=PublicClassWithInternalInterfaceImpl.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
public class: RefasmerTestAssembly.PublicClassWithInternalInterfaceImpl | ||
methods: | ||
- RefasmerTestAssembly.IInterface2ToBeMarkedInternal<RefasmerTestAssembly.Class3ToBeMarkedInternal>.Foo(): RefasmerTestAssembly.Class3ToBeMarkedInternal: | ||
- .ctor(): System.Void: | ||
internal class: RefasmerTestAssembly.Class3ToBeMarkedInternal | ||
public interface: RefasmerTestAssembly.IInterface2ToBeMarkedInternal`1 | ||
methods: | ||
- Foo(): T: | ||
- <abstract> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
using System; | ||
|
||
namespace RefasmerTestAssembly; | ||
|
||
// Post-processed and converted to internal by tests: | ||
public class Class1ToBeMarkedInternal; | ||
public class Class2ToBeMarkedInternal; | ||
public class InterfaceToBeMarkedInternal; | ||
public class Class3ToBeMarkedInternal; | ||
public interface IInterface1ToBeMarkedInternal; | ||
public interface IInterface2ToBeMarkedInternal<T> | ||
{ | ||
T Foo(); | ||
} | ||
|
||
public class PublicClassWithInternalTypeInApi | ||
{ | ||
public void Accept(Class1ToBeMarkedInternal argument) {} | ||
} | ||
|
||
public class PublicClassDerivingFromInternal : Class2ToBeMarkedInternal; | ||
public class PublicClassImplementingInternal : InterfaceToBeMarkedInternal; | ||
public class PublicClassImplementingInternal : IInterface1ToBeMarkedInternal; | ||
|
||
public class PublicClassWithInternalInterfaceImpl : IInterface2ToBeMarkedInternal<Class3ToBeMarkedInternal> | ||
{ | ||
Class3ToBeMarkedInternal IInterface2ToBeMarkedInternal<Class3ToBeMarkedInternal>.Foo() => throw new Exception("123"); | ||
} |