@alloy-js/csharp 0.21.0-dev.1 → 0.21.0-dev.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scripts/components/library-interface.d.ts +9 -0
- package/dist/scripts/components/library-interface.d.ts.map +1 -0
- package/dist/scripts/components/library-interface.js +43 -0
- package/dist/scripts/components/library-interface.js.map +1 -0
- package/dist/scripts/components/namespace-directory.d.ts +7 -0
- package/dist/scripts/components/namespace-directory.d.ts.map +1 -0
- package/dist/scripts/components/namespace-directory.js +96 -0
- package/dist/scripts/components/namespace-directory.js.map +1 -0
- package/dist/scripts/generate-builtins.d.ts +11 -0
- package/dist/scripts/generate-builtins.d.ts.map +1 -0
- package/dist/scripts/generate-builtins.js +35 -0
- package/dist/scripts/generate-builtins.js.map +1 -0
- package/dist/scripts/process-docfx.d.ts +3 -0
- package/dist/scripts/process-docfx.d.ts.map +1 -0
- package/dist/scripts/process-docfx.js +288 -0
- package/dist/scripts/process-docfx.js.map +1 -0
- package/dist/src/access.d.ts +13 -0
- package/dist/src/access.d.ts.map +1 -0
- package/dist/src/access.js +65 -0
- package/dist/src/access.js.map +1 -0
- package/dist/src/access.test.d.ts +2 -0
- package/dist/src/access.test.d.ts.map +1 -0
- package/dist/src/access.test.js +43 -0
- package/dist/src/access.test.js.map +1 -0
- package/dist/src/builtins/Microsoft/Win32/SafeHandles/index.d.ts +32 -0
- package/dist/src/builtins/Microsoft/Win32/SafeHandles/index.d.ts.map +1 -0
- package/dist/src/builtins/Microsoft/Win32/SafeHandles/index.js +117 -0
- package/dist/src/builtins/Microsoft/Win32/SafeHandles/index.js.map +1 -0
- package/dist/src/builtins/Microsoft/Win32/index.d.ts +6 -0
- package/dist/src/builtins/Microsoft/Win32/index.d.ts.map +1 -0
- package/dist/src/builtins/Microsoft/Win32/index.js +5 -0
- package/dist/src/builtins/Microsoft/Win32/index.js.map +1 -0
- package/dist/src/builtins/Microsoft/index.d.ts +6 -0
- package/dist/src/builtins/Microsoft/index.d.ts.map +1 -0
- package/dist/src/builtins/Microsoft/index.js +5 -0
- package/dist/src/builtins/Microsoft/index.js.map +1 -0
- package/dist/src/builtins/System/Buffers/Text/index.d.ts +31 -0
- package/dist/src/builtins/System/Buffers/Text/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Buffers/Text/index.js +122 -0
- package/dist/src/builtins/System/Buffers/Text/index.js.map +1 -0
- package/dist/src/builtins/System/Buffers/index.d.ts +57 -0
- package/dist/src/builtins/System/Buffers/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Buffers/index.js +214 -0
- package/dist/src/builtins/System/Buffers/index.js.map +1 -0
- package/dist/src/builtins/System/CodeDom/Compiler/index.d.ts +31 -0
- package/dist/src/builtins/System/CodeDom/Compiler/index.d.ts.map +1 -0
- package/dist/src/builtins/System/CodeDom/Compiler/index.js +131 -0
- package/dist/src/builtins/System/CodeDom/Compiler/index.js.map +1 -0
- package/dist/src/builtins/System/CodeDom/index.d.ts +6 -0
- package/dist/src/builtins/System/CodeDom/index.d.ts.map +1 -0
- package/dist/src/builtins/System/CodeDom/index.js +5 -0
- package/dist/src/builtins/System/CodeDom/index.js.map +1 -0
- package/dist/src/builtins/System/Collections/Generic/index.d.ts +99 -0
- package/dist/src/builtins/System/Collections/Generic/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Collections/Generic/index.js +342 -0
- package/dist/src/builtins/System/Collections/Generic/index.js.map +1 -0
- package/dist/src/builtins/System/Collections/ObjectModel/index.d.ts +49 -0
- package/dist/src/builtins/System/Collections/ObjectModel/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Collections/ObjectModel/index.js +185 -0
- package/dist/src/builtins/System/Collections/ObjectModel/index.js.map +1 -0
- package/dist/src/builtins/System/Collections/index.d.ts +142 -0
- package/dist/src/builtins/System/Collections/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Collections/index.js +634 -0
- package/dist/src/builtins/System/Collections/index.js.map +1 -0
- package/dist/src/builtins/System/ComponentModel/index.d.ts +24 -0
- package/dist/src/builtins/System/ComponentModel/index.d.ts.map +1 -0
- package/dist/src/builtins/System/ComponentModel/index.js +86 -0
- package/dist/src/builtins/System/ComponentModel/index.js.map +1 -0
- package/dist/src/builtins/System/Configuration/Assemblies/index.d.ts +19 -0
- package/dist/src/builtins/System/Configuration/Assemblies/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Configuration/Assemblies/index.js +69 -0
- package/dist/src/builtins/System/Configuration/Assemblies/index.js.map +1 -0
- package/dist/src/builtins/System/Configuration/index.d.ts +6 -0
- package/dist/src/builtins/System/Configuration/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Configuration/index.js +5 -0
- package/dist/src/builtins/System/Configuration/index.js.map +1 -0
- package/dist/src/builtins/System/Diagnostics/CodeAnalysis/index.d.ts +155 -0
- package/dist/src/builtins/System/Diagnostics/CodeAnalysis/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Diagnostics/CodeAnalysis/index.js +705 -0
- package/dist/src/builtins/System/Diagnostics/CodeAnalysis/index.js.map +1 -0
- package/dist/src/builtins/System/Diagnostics/index.d.ts +115 -0
- package/dist/src/builtins/System/Diagnostics/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Diagnostics/index.js +509 -0
- package/dist/src/builtins/System/Diagnostics/index.js.map +1 -0
- package/dist/src/builtins/System/Globalization/index.d.ts +737 -0
- package/dist/src/builtins/System/Globalization/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Globalization/index.js +3848 -0
- package/dist/src/builtins/System/Globalization/index.js.map +1 -0
- package/dist/src/builtins/System/IO/Enumeration/index.d.ts +53 -0
- package/dist/src/builtins/System/IO/Enumeration/index.d.ts.map +1 -0
- package/dist/src/builtins/System/IO/Enumeration/index.js +218 -0
- package/dist/src/builtins/System/IO/Enumeration/index.js.map +1 -0
- package/dist/src/builtins/System/IO/index.d.ts +622 -0
- package/dist/src/builtins/System/IO/index.d.ts.map +1 -0
- package/dist/src/builtins/System/IO/index.js +3083 -0
- package/dist/src/builtins/System/IO/index.js.map +1 -0
- package/dist/src/builtins/System/Net/index.d.ts +14 -0
- package/dist/src/builtins/System/Net/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Net/index.js +41 -0
- package/dist/src/builtins/System/Net/index.js.map +1 -0
- package/dist/src/builtins/System/Numerics/index.d.ts +204 -0
- package/dist/src/builtins/System/Numerics/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Numerics/index.js +952 -0
- package/dist/src/builtins/System/Numerics/index.js.map +1 -0
- package/dist/src/builtins/System/Reflection/index.d.ts +918 -0
- package/dist/src/builtins/System/Reflection/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Reflection/index.js +4675 -0
- package/dist/src/builtins/System/Reflection/index.js.map +1 -0
- package/dist/src/builtins/System/Resources/index.d.ts +56 -0
- package/dist/src/builtins/System/Resources/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Resources/index.js +235 -0
- package/dist/src/builtins/System/Resources/index.js.map +1 -0
- package/dist/src/builtins/System/Runtime/CompilerServices/index.d.ts +396 -0
- package/dist/src/builtins/System/Runtime/CompilerServices/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Runtime/CompilerServices/index.js +1531 -0
- package/dist/src/builtins/System/Runtime/CompilerServices/index.js.map +1 -0
- package/dist/src/builtins/System/Runtime/ConstrainedExecution/index.d.ts +29 -0
- package/dist/src/builtins/System/Runtime/ConstrainedExecution/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Runtime/ConstrainedExecution/index.js +103 -0
- package/dist/src/builtins/System/Runtime/ConstrainedExecution/index.js.map +1 -0
- package/dist/src/builtins/System/Runtime/ExceptionServices/index.d.ts +20 -0
- package/dist/src/builtins/System/Runtime/ExceptionServices/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Runtime/ExceptionServices/index.js +62 -0
- package/dist/src/builtins/System/Runtime/ExceptionServices/index.js.map +1 -0
- package/dist/src/builtins/System/Runtime/InteropServices/Marshalling/index.d.ts +84 -0
- package/dist/src/builtins/System/Runtime/InteropServices/Marshalling/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Runtime/InteropServices/Marshalling/index.js +310 -0
- package/dist/src/builtins/System/Runtime/InteropServices/Marshalling/index.js.map +1 -0
- package/dist/src/builtins/System/Runtime/InteropServices/Swift/index.d.ts +18 -0
- package/dist/src/builtins/System/Runtime/InteropServices/Swift/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Runtime/InteropServices/Swift/index.js +49 -0
- package/dist/src/builtins/System/Runtime/InteropServices/Swift/index.js.map +1 -0
- package/dist/src/builtins/System/Runtime/InteropServices/index.d.ts +165 -0
- package/dist/src/builtins/System/Runtime/InteropServices/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Runtime/InteropServices/index.js +774 -0
- package/dist/src/builtins/System/Runtime/InteropServices/index.js.map +1 -0
- package/dist/src/builtins/System/Runtime/Remoting/index.d.ts +10 -0
- package/dist/src/builtins/System/Runtime/Remoting/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Runtime/Remoting/index.js +18 -0
- package/dist/src/builtins/System/Runtime/Remoting/index.js.map +1 -0
- package/dist/src/builtins/System/Runtime/Serialization/index.d.ts +118 -0
- package/dist/src/builtins/System/Runtime/Serialization/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Runtime/Serialization/index.js +468 -0
- package/dist/src/builtins/System/Runtime/Serialization/index.js.map +1 -0
- package/dist/src/builtins/System/Runtime/Versioning/index.d.ts +81 -0
- package/dist/src/builtins/System/Runtime/Versioning/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Runtime/Versioning/index.js +336 -0
- package/dist/src/builtins/System/Runtime/Versioning/index.js.map +1 -0
- package/dist/src/builtins/System/Runtime/index.d.ts +65 -0
- package/dist/src/builtins/System/Runtime/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Runtime/index.js +243 -0
- package/dist/src/builtins/System/Runtime/index.js.map +1 -0
- package/dist/src/builtins/System/Security/Cryptography/index.d.ts +9 -0
- package/dist/src/builtins/System/Security/Cryptography/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Security/Cryptography/index.js +14 -0
- package/dist/src/builtins/System/Security/Cryptography/index.js.map +1 -0
- package/dist/src/builtins/System/Security/Permissions/index.d.ts +67 -0
- package/dist/src/builtins/System/Security/Permissions/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Security/Permissions/index.js +325 -0
- package/dist/src/builtins/System/Security/Permissions/index.js.map +1 -0
- package/dist/src/builtins/System/Security/Principal/index.d.ts +27 -0
- package/dist/src/builtins/System/Security/Principal/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Security/Principal/index.js +104 -0
- package/dist/src/builtins/System/Security/Principal/index.js.map +1 -0
- package/dist/src/builtins/System/Security/index.d.ts +141 -0
- package/dist/src/builtins/System/Security/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Security/index.js +590 -0
- package/dist/src/builtins/System/Security/index.js.map +1 -0
- package/dist/src/builtins/System/Text/Unicode/index.d.ts +12 -0
- package/dist/src/builtins/System/Text/Unicode/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Text/Unicode/index.js +31 -0
- package/dist/src/builtins/System/Text/Unicode/index.js.map +1 -0
- package/dist/src/builtins/System/Text/index.d.ts +268 -0
- package/dist/src/builtins/System/Text/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Text/index.js +1278 -0
- package/dist/src/builtins/System/Text/index.js.map +1 -0
- package/dist/src/builtins/System/Threading/Tasks/Sources/index.d.ts +32 -0
- package/dist/src/builtins/System/Threading/Tasks/Sources/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Threading/Tasks/Sources/index.js +117 -0
- package/dist/src/builtins/System/Threading/Tasks/Sources/index.js.map +1 -0
- package/dist/src/builtins/System/Threading/Tasks/index.d.ts +140 -0
- package/dist/src/builtins/System/Threading/Tasks/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Threading/Tasks/index.js +621 -0
- package/dist/src/builtins/System/Threading/Tasks/index.js.map +1 -0
- package/dist/src/builtins/System/Threading/index.d.ts +92 -0
- package/dist/src/builtins/System/Threading/index.d.ts.map +1 -0
- package/dist/src/builtins/System/Threading/index.js +372 -0
- package/dist/src/builtins/System/Threading/index.js.map +1 -0
- package/dist/src/builtins/System/index.d.ts +2746 -0
- package/dist/src/builtins/System/index.d.ts.map +1 -0
- package/dist/src/builtins/System/index.js +13070 -0
- package/dist/src/builtins/System/index.js.map +1 -0
- package/dist/src/builtins/index.d.ts +3 -0
- package/dist/src/builtins/index.d.ts.map +1 -0
- package/dist/src/builtins/index.js +3 -0
- package/dist/src/builtins/index.js.map +1 -0
- package/dist/src/components/access-expression/access-expression.d.ts +3 -3
- package/dist/src/components/access-expression/access-expression.d.ts.map +1 -1
- package/dist/src/components/enum/declaration.d.ts +2 -2
- package/dist/src/components/enum/declaration.d.ts.map +1 -1
- package/dist/src/components/enum/declaration.js +3 -3
- package/dist/src/components/enum/declaration.js.map +1 -1
- package/dist/src/components/enum/declaration.ref.test.js +1 -1
- package/dist/src/components/enum/declaration.test.js +15 -1
- package/dist/src/components/enum/declaration.test.js.map +1 -1
- package/dist/src/components/enum/member.d.ts +2 -2
- package/dist/src/components/enum/member.d.ts.map +1 -1
- package/dist/src/components/enum/member.js +3 -3
- package/dist/src/components/enum/member.js.map +1 -1
- package/dist/src/components/enum/member.test.js +24 -1
- package/dist/src/components/enum/member.test.js.map +1 -1
- package/dist/src/components/field/field.d.ts +2 -2
- package/dist/src/components/field/field.d.ts.map +1 -1
- package/dist/src/components/field/field.js.map +1 -1
- package/dist/src/components/field/field.test.js +19 -1
- package/dist/src/components/field/field.test.js.map +1 -1
- package/dist/src/components/if/if-statement.d.ts +25 -0
- package/dist/src/components/if/if-statement.d.ts.map +1 -0
- package/dist/src/components/if/if-statement.js +36 -0
- package/dist/src/components/if/if-statement.js.map +1 -0
- package/dist/src/components/if/if-statement.test.d.ts +2 -0
- package/dist/src/components/if/if-statement.test.d.ts.map +1 -0
- package/dist/src/components/if/if-statement.test.js +29 -0
- package/dist/src/components/if/if-statement.test.js.map +1 -0
- package/dist/src/components/index.d.ts +3 -1
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +3 -2
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/interface/declaration.d.ts +1 -1
- package/dist/src/components/interface/declaration.d.ts.map +1 -1
- package/dist/src/components/interface/declaration.js +3 -3
- package/dist/src/components/interface/declaration.js.map +1 -1
- package/dist/src/components/interface/declaration.test.js +14 -1
- package/dist/src/components/interface/declaration.test.js.map +1 -1
- package/dist/src/components/interface/method.d.ts +2 -2
- package/dist/src/components/interface/method.d.ts.map +1 -1
- package/dist/src/components/interface/method.js.map +1 -1
- package/dist/src/components/interface/method.test.js +17 -1
- package/dist/src/components/interface/method.test.js.map +1 -1
- package/dist/src/components/interface/property.d.ts +2 -2
- package/dist/src/components/interface/property.d.ts.map +1 -1
- package/dist/src/components/interface/property.js.map +1 -1
- package/dist/src/components/interface/property.test.js +19 -0
- package/dist/src/components/interface/property.test.js.map +1 -1
- package/dist/src/components/method/method.js +10 -2
- package/dist/src/components/method/method.js.map +1 -1
- package/dist/src/components/method/method.test.js +61 -0
- package/dist/src/components/method/method.test.js.map +1 -1
- package/dist/src/components/namespace/namespace-name.d.ts +10 -0
- package/dist/src/components/namespace/namespace-name.d.ts.map +1 -0
- package/dist/src/components/namespace/namespace-name.js +20 -0
- package/dist/src/components/namespace/namespace-name.js.map +1 -0
- package/dist/src/components/{namespace.d.ts → namespace/namespace.d.ts} +3 -1
- package/dist/src/components/namespace/namespace.d.ts.map +1 -0
- package/dist/src/components/{namespace.js → namespace/namespace.js} +12 -13
- package/dist/src/components/namespace/namespace.js.map +1 -0
- package/dist/src/components/namespace/namespace.test.d.ts.map +1 -0
- package/dist/src/components/namespace/namespace.test.js +207 -0
- package/dist/src/components/namespace/namespace.test.js.map +1 -0
- package/dist/src/components/namespace.ref.test.js +42 -10
- package/dist/src/components/namespace.ref.test.js.map +1 -1
- package/dist/src/components/parameters/parameters.d.ts +15 -0
- package/dist/src/components/parameters/parameters.d.ts.map +1 -1
- package/dist/src/components/parameters/parameters.js +9 -3
- package/dist/src/components/parameters/parameters.js.map +1 -1
- package/dist/src/components/parameters/parameters.test.js +36 -0
- package/dist/src/components/parameters/parameters.test.js.map +1 -1
- package/dist/src/components/property/property.d.ts.map +1 -1
- package/dist/src/components/property/property.js +21 -12
- package/dist/src/components/property/property.js.map +1 -1
- package/dist/src/components/property/property.test.js +28 -0
- package/dist/src/components/property/property.test.js.map +1 -1
- package/dist/src/components/record/declaration.d.ts +1 -1
- package/dist/src/components/record/declaration.d.ts.map +1 -1
- package/dist/src/components/record/declaration.js +3 -4
- package/dist/src/components/record/declaration.js.map +1 -1
- package/dist/src/components/record/declaration.test.js +14 -1
- package/dist/src/components/record/declaration.test.js.map +1 -1
- package/dist/src/components/source-file/source-file.d.ts.map +1 -1
- package/dist/src/components/source-file/source-file.js +4 -2
- package/dist/src/components/source-file/source-file.js.map +1 -1
- package/dist/src/components/source-file/source-file.test.js +1 -1
- package/dist/src/components/source-file/using.test.js +1 -1
- package/dist/src/components/struct/declaration.d.ts +1 -1
- package/dist/src/components/struct/declaration.d.ts.map +1 -1
- package/dist/src/components/struct/declaration.js +3 -3
- package/dist/src/components/struct/declaration.js.map +1 -1
- package/dist/src/components/struct/declaration.test.js +14 -1
- package/dist/src/components/struct/declaration.test.js.map +1 -1
- package/dist/src/components/type-parameters/type-parameter.d.ts +2 -2
- package/dist/src/components/type-parameters/type-parameter.d.ts.map +1 -1
- package/dist/src/components/type-parameters/type-parameter.js.map +1 -1
- package/dist/src/components/type-parameters/type-parameters.test.js +14 -0
- package/dist/src/components/type-parameters/type-parameters.test.js.map +1 -1
- package/dist/src/components/var/declaration.d.ts +4 -2
- package/dist/src/components/var/declaration.d.ts.map +1 -1
- package/dist/src/components/var/declaration.js +17 -3
- package/dist/src/components/var/declaration.js.map +1 -1
- package/dist/src/components/var/declaration.test.js +22 -1
- package/dist/src/components/var/declaration.test.js.map +1 -1
- package/dist/src/contexts/global-namespace.d.ts +1 -0
- package/dist/src/contexts/global-namespace.d.ts.map +1 -1
- package/dist/src/contexts/global-namespace.js +6 -1
- package/dist/src/contexts/global-namespace.js.map +1 -1
- package/dist/src/create-library.d.ts +62 -0
- package/dist/src/create-library.d.ts.map +1 -0
- package/dist/src/create-library.js +128 -0
- package/dist/src/create-library.js.map +1 -0
- package/dist/src/create-library.test.d.ts +10 -0
- package/dist/src/create-library.test.d.ts.map +1 -0
- package/dist/src/create-library.test.js +220 -0
- package/dist/src/create-library.test.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/name-policy.d.ts +1 -1
- package/dist/src/name-policy.d.ts.map +1 -1
- package/dist/src/name-policy.js +1 -0
- package/dist/src/name-policy.js.map +1 -1
- package/dist/src/symbols/factories.d.ts +1 -1
- package/dist/src/symbols/factories.d.ts.map +1 -1
- package/dist/src/symbols/factories.js +27 -7
- package/dist/src/symbols/factories.js.map +1 -1
- package/dist/src/symbols/named-type.d.ts +3 -3
- package/dist/src/symbols/named-type.d.ts.map +1 -1
- package/dist/src/symbols/named-type.js.map +1 -1
- package/dist/src/symbols/namespace.d.ts +2 -2
- package/dist/src/symbols/namespace.d.ts.map +1 -1
- package/dist/src/symbols/namespace.js.map +1 -1
- package/dist/src/symbols/reference.d.ts.map +1 -1
- package/dist/src/symbols/reference.js +3 -3
- package/dist/src/symbols/reference.js.map +1 -1
- package/dist/test/utils.d.ts +4 -2
- package/dist/test/utils.d.ts.map +1 -1
- package/dist/test/utils.js +5 -4
- package/dist/test/utils.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -3
- package/scripts/components/library-interface.tsx +41 -0
- package/scripts/components/namespace-directory.tsx +104 -0
- package/scripts/generate-builtins.tsx +35 -0
- package/scripts/process-docfx.tsx +309 -0
- package/src/access.test.tsx +49 -0
- package/src/access.tsx +70 -0
- package/src/builtins/Microsoft/Win32/SafeHandles/index.ts +147 -0
- package/src/builtins/Microsoft/Win32/index.ts +8 -0
- package/src/builtins/Microsoft/index.ts +8 -0
- package/src/builtins/System/Buffers/Text/index.ts +150 -0
- package/src/builtins/System/Buffers/index.ts +267 -0
- package/src/builtins/System/CodeDom/Compiler/index.ts +160 -0
- package/src/builtins/System/CodeDom/index.ts +8 -0
- package/src/builtins/System/Collections/Generic/index.ts +439 -0
- package/src/builtins/System/Collections/ObjectModel/index.ts +232 -0
- package/src/builtins/System/Collections/index.ts +771 -0
- package/src/builtins/System/ComponentModel/index.ts +108 -0
- package/src/builtins/System/Configuration/Assemblies/index.ts +85 -0
- package/src/builtins/System/Configuration/index.ts +8 -0
- package/src/builtins/System/Diagnostics/CodeAnalysis/index.ts +858 -0
- package/src/builtins/System/Diagnostics/index.ts +620 -0
- package/src/builtins/System/Globalization/index.ts +4583 -0
- package/src/builtins/System/IO/Enumeration/index.ts +269 -0
- package/src/builtins/System/IO/index.ts +3701 -0
- package/src/builtins/System/Net/index.ts +52 -0
- package/src/builtins/System/Numerics/index.ts +1184 -0
- package/src/builtins/System/Reflection/index.ts +5591 -0
- package/src/builtins/System/Resources/index.ts +289 -0
- package/src/builtins/System/Runtime/CompilerServices/index.ts +1929 -0
- package/src/builtins/System/Runtime/ConstrainedExecution/index.ts +129 -0
- package/src/builtins/System/Runtime/ExceptionServices/index.ts +80 -0
- package/src/builtins/System/Runtime/InteropServices/Marshalling/index.ts +394 -0
- package/src/builtins/System/Runtime/InteropServices/Swift/index.ts +65 -0
- package/src/builtins/System/Runtime/InteropServices/index.ts +934 -0
- package/src/builtins/System/Runtime/Remoting/index.ts +25 -0
- package/src/builtins/System/Runtime/Serialization/index.ts +584 -0
- package/src/builtins/System/Runtime/Versioning/index.ts +415 -0
- package/src/builtins/System/Runtime/index.ts +298 -0
- package/src/builtins/System/Security/Cryptography/index.ts +20 -0
- package/src/builtins/System/Security/Permissions/index.ts +390 -0
- package/src/builtins/System/Security/Principal/index.ts +129 -0
- package/src/builtins/System/Security/index.ts +725 -0
- package/src/builtins/System/Text/Unicode/index.ts +40 -0
- package/src/builtins/System/Text/index.ts +1542 -0
- package/src/builtins/System/Threading/Tasks/Sources/index.ts +147 -0
- package/src/builtins/System/Threading/Tasks/index.ts +757 -0
- package/src/builtins/System/Threading/index.ts +460 -0
- package/src/builtins/System/index.ts +15803 -0
- package/src/builtins/index.ts +2 -0
- package/src/components/access-expression/access-expression.tsx +2 -2
- package/src/components/enum/declaration.ref.test.tsx +1 -1
- package/src/components/enum/declaration.test.tsx +14 -1
- package/src/components/enum/declaration.tsx +4 -3
- package/src/components/enum/member.test.tsx +22 -1
- package/src/components/enum/member.tsx +4 -4
- package/src/components/field/field.test.tsx +14 -1
- package/src/components/field/field.tsx +2 -2
- package/src/components/if/if-statement.test.tsx +26 -0
- package/src/components/if/if-statement.tsx +50 -0
- package/src/components/index.ts +3 -1
- package/src/components/interface/declaration.test.tsx +11 -1
- package/src/components/interface/declaration.tsx +3 -4
- package/src/components/interface/method.test.tsx +14 -1
- package/src/components/interface/method.tsx +2 -1
- package/src/components/interface/property.test.tsx +13 -0
- package/src/components/interface/property.tsx +2 -1
- package/src/components/method/method.test.tsx +49 -0
- package/src/components/method/method.tsx +7 -4
- package/src/components/namespace/namespace-name.tsx +31 -0
- package/src/components/namespace/namespace.test.tsx +145 -0
- package/src/components/{namespace.tsx → namespace/namespace.tsx} +12 -15
- package/src/components/namespace.ref.test.tsx +34 -9
- package/src/components/parameters/parameters.test.tsx +33 -0
- package/src/components/parameters/parameters.tsx +24 -2
- package/src/components/property/property.test.tsx +25 -0
- package/src/components/property/property.tsx +22 -11
- package/src/components/record/declaration.test.tsx +11 -1
- package/src/components/record/declaration.tsx +3 -4
- package/src/components/source-file/source-file.test.tsx +1 -1
- package/src/components/source-file/source-file.tsx +2 -2
- package/src/components/source-file/using.test.tsx +1 -1
- package/src/components/struct/declaration.test.tsx +11 -1
- package/src/components/struct/declaration.tsx +3 -4
- package/src/components/type-parameters/type-parameter.tsx +2 -1
- package/src/components/type-parameters/type-parameters.test.tsx +9 -0
- package/src/components/var/declaration.test.tsx +16 -1
- package/src/components/var/declaration.tsx +17 -2
- package/src/contexts/global-namespace.ts +8 -1
- package/src/create-library.test.tsx +202 -0
- package/src/create-library.ts +270 -0
- package/src/index.ts +2 -0
- package/src/name-policy.ts +3 -1
- package/src/symbols/factories.ts +47 -10
- package/src/symbols/named-type.ts +3 -3
- package/src/symbols/namespace.ts +2 -2
- package/src/symbols/reference.tsx +10 -3
- package/temp/api.json +3282 -98
- package/test/utils.tsx +6 -3
- package/tsconfig.json +11 -2
- package/dist/src/components/namespace.d.ts.map +0 -1
- package/dist/src/components/namespace.js.map +0 -1
- package/dist/src/components/namespace.test.d.ts.map +0 -1
- package/dist/src/components/namespace.test.js +0 -79
- package/dist/src/components/namespace.test.js.map +0 -1
- package/src/components/namespace.test.tsx +0 -52
- /package/dist/src/components/{namespace.test.d.ts → namespace/namespace.test.d.ts} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createLibrary } from "#createLibrary";
|
|
2
|
+
import { LibrarySymbolReference } from "@alloy-js/core";
|
|
3
|
+
|
|
4
|
+
type CryptographyLibrary = LibrarySymbolReference & {
|
|
5
|
+
CryptographicException: LibrarySymbolReference & {
|
|
6
|
+
CryptographicException: LibrarySymbolReference
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
const Cryptography: CryptographyLibrary = createLibrary("System.Security.Cryptography", {
|
|
10
|
+
CryptographicException: {
|
|
11
|
+
kind: "class",
|
|
12
|
+
members: {
|
|
13
|
+
CryptographicException: {
|
|
14
|
+
kind: "method",
|
|
15
|
+
methodKind: "constructor",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
export default Cryptography
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import System from "../../index.js";
|
|
2
|
+
|
|
3
|
+
import { createLibrary } from "#createLibrary";
|
|
4
|
+
import { LibrarySymbolReference } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
type PermissionsLibrary = LibrarySymbolReference & {
|
|
7
|
+
CodeAccessSecurityAttribute: LibrarySymbolReference & {
|
|
8
|
+
CodeAccessSecurityAttribute: LibrarySymbolReference
|
|
9
|
+
};
|
|
10
|
+
PermissionState: LibrarySymbolReference & {
|
|
11
|
+
None: LibrarySymbolReference;
|
|
12
|
+
Unrestricted: LibrarySymbolReference
|
|
13
|
+
};
|
|
14
|
+
SecurityAction: LibrarySymbolReference & {
|
|
15
|
+
Demand: LibrarySymbolReference;
|
|
16
|
+
Assert: LibrarySymbolReference;
|
|
17
|
+
Deny: LibrarySymbolReference;
|
|
18
|
+
PermitOnly: LibrarySymbolReference;
|
|
19
|
+
LinkDemand: LibrarySymbolReference;
|
|
20
|
+
InheritanceDemand: LibrarySymbolReference;
|
|
21
|
+
RequestMinimum: LibrarySymbolReference;
|
|
22
|
+
RequestOptional: LibrarySymbolReference;
|
|
23
|
+
RequestRefuse: LibrarySymbolReference
|
|
24
|
+
};
|
|
25
|
+
SecurityAttribute: LibrarySymbolReference & {
|
|
26
|
+
SecurityAttribute: LibrarySymbolReference;
|
|
27
|
+
CreatePermission: LibrarySymbolReference;
|
|
28
|
+
Action: LibrarySymbolReference;
|
|
29
|
+
Unrestricted: LibrarySymbolReference
|
|
30
|
+
};
|
|
31
|
+
SecurityPermissionAttribute: LibrarySymbolReference & {
|
|
32
|
+
SecurityPermissionAttribute: LibrarySymbolReference;
|
|
33
|
+
CreatePermission: LibrarySymbolReference;
|
|
34
|
+
Assertion: LibrarySymbolReference;
|
|
35
|
+
BindingRedirects: LibrarySymbolReference;
|
|
36
|
+
ControlAppDomain: LibrarySymbolReference;
|
|
37
|
+
ControlDomainPolicy: LibrarySymbolReference;
|
|
38
|
+
ControlEvidence: LibrarySymbolReference;
|
|
39
|
+
ControlPolicy: LibrarySymbolReference;
|
|
40
|
+
ControlPrincipal: LibrarySymbolReference;
|
|
41
|
+
ControlThread: LibrarySymbolReference;
|
|
42
|
+
Execution: LibrarySymbolReference;
|
|
43
|
+
Flags: LibrarySymbolReference;
|
|
44
|
+
Infrastructure: LibrarySymbolReference;
|
|
45
|
+
RemotingConfiguration: LibrarySymbolReference;
|
|
46
|
+
SerializationFormatter: LibrarySymbolReference;
|
|
47
|
+
SkipVerification: LibrarySymbolReference;
|
|
48
|
+
UnmanagedCode: LibrarySymbolReference
|
|
49
|
+
};
|
|
50
|
+
SecurityPermissionFlag: LibrarySymbolReference & {
|
|
51
|
+
NoFlags: LibrarySymbolReference;
|
|
52
|
+
Assertion: LibrarySymbolReference;
|
|
53
|
+
UnmanagedCode: LibrarySymbolReference;
|
|
54
|
+
SkipVerification: LibrarySymbolReference;
|
|
55
|
+
Execution: LibrarySymbolReference;
|
|
56
|
+
ControlThread: LibrarySymbolReference;
|
|
57
|
+
ControlEvidence: LibrarySymbolReference;
|
|
58
|
+
ControlPolicy: LibrarySymbolReference;
|
|
59
|
+
SerializationFormatter: LibrarySymbolReference;
|
|
60
|
+
ControlDomainPolicy: LibrarySymbolReference;
|
|
61
|
+
ControlPrincipal: LibrarySymbolReference;
|
|
62
|
+
ControlAppDomain: LibrarySymbolReference;
|
|
63
|
+
RemotingConfiguration: LibrarySymbolReference;
|
|
64
|
+
Infrastructure: LibrarySymbolReference;
|
|
65
|
+
BindingRedirects: LibrarySymbolReference;
|
|
66
|
+
AllFlags: LibrarySymbolReference
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const Permissions: PermissionsLibrary = createLibrary("System.Security.Permissions", {
|
|
70
|
+
CodeAccessSecurityAttribute: {
|
|
71
|
+
kind: "class",
|
|
72
|
+
members: {
|
|
73
|
+
CodeAccessSecurityAttribute: {
|
|
74
|
+
kind: "method",
|
|
75
|
+
methodKind: "constructor",
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
isAbstract: true,
|
|
79
|
+
},
|
|
80
|
+
PermissionState: {
|
|
81
|
+
kind: "enum",
|
|
82
|
+
members: {
|
|
83
|
+
None: {
|
|
84
|
+
kind: "field",
|
|
85
|
+
type: () => {
|
|
86
|
+
return Permissions.PermissionState;
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
Unrestricted: {
|
|
90
|
+
kind: "field",
|
|
91
|
+
type: () => {
|
|
92
|
+
return Permissions.PermissionState;
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
SecurityAction: {
|
|
98
|
+
kind: "enum",
|
|
99
|
+
members: {
|
|
100
|
+
Demand: {
|
|
101
|
+
kind: "field",
|
|
102
|
+
type: () => {
|
|
103
|
+
return Permissions.SecurityAction;
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
Assert: {
|
|
107
|
+
kind: "field",
|
|
108
|
+
type: () => {
|
|
109
|
+
return Permissions.SecurityAction;
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
Deny: {
|
|
113
|
+
kind: "field",
|
|
114
|
+
type: () => {
|
|
115
|
+
return Permissions.SecurityAction;
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
PermitOnly: {
|
|
119
|
+
kind: "field",
|
|
120
|
+
type: () => {
|
|
121
|
+
return Permissions.SecurityAction;
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
LinkDemand: {
|
|
125
|
+
kind: "field",
|
|
126
|
+
type: () => {
|
|
127
|
+
return Permissions.SecurityAction;
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
InheritanceDemand: {
|
|
131
|
+
kind: "field",
|
|
132
|
+
type: () => {
|
|
133
|
+
return Permissions.SecurityAction;
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
RequestMinimum: {
|
|
137
|
+
kind: "field",
|
|
138
|
+
type: () => {
|
|
139
|
+
return Permissions.SecurityAction;
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
RequestOptional: {
|
|
143
|
+
kind: "field",
|
|
144
|
+
type: () => {
|
|
145
|
+
return Permissions.SecurityAction;
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
RequestRefuse: {
|
|
149
|
+
kind: "field",
|
|
150
|
+
type: () => {
|
|
151
|
+
return Permissions.SecurityAction;
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
SecurityAttribute: {
|
|
157
|
+
kind: "class",
|
|
158
|
+
members: {
|
|
159
|
+
SecurityAttribute: {
|
|
160
|
+
kind: "method",
|
|
161
|
+
methodKind: "constructor",
|
|
162
|
+
},
|
|
163
|
+
CreatePermission: {
|
|
164
|
+
kind: "method",
|
|
165
|
+
methodKind: "ordinary",
|
|
166
|
+
isAbstract: true,
|
|
167
|
+
},
|
|
168
|
+
Action: {
|
|
169
|
+
kind: "property",
|
|
170
|
+
type: () => {
|
|
171
|
+
return Permissions.SecurityAction;
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
Unrestricted: {
|
|
175
|
+
kind: "property",
|
|
176
|
+
type: () => {
|
|
177
|
+
return System.Boolean;
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
isAbstract: true,
|
|
182
|
+
},
|
|
183
|
+
SecurityPermissionAttribute: {
|
|
184
|
+
kind: "class",
|
|
185
|
+
members: {
|
|
186
|
+
SecurityPermissionAttribute: {
|
|
187
|
+
kind: "method",
|
|
188
|
+
methodKind: "constructor",
|
|
189
|
+
},
|
|
190
|
+
CreatePermission: {
|
|
191
|
+
kind: "method",
|
|
192
|
+
methodKind: "ordinary",
|
|
193
|
+
isOverride: true,
|
|
194
|
+
},
|
|
195
|
+
Assertion: {
|
|
196
|
+
kind: "property",
|
|
197
|
+
type: () => {
|
|
198
|
+
return System.Boolean;
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
BindingRedirects: {
|
|
202
|
+
kind: "property",
|
|
203
|
+
type: () => {
|
|
204
|
+
return System.Boolean;
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
ControlAppDomain: {
|
|
208
|
+
kind: "property",
|
|
209
|
+
type: () => {
|
|
210
|
+
return System.Boolean;
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
ControlDomainPolicy: {
|
|
214
|
+
kind: "property",
|
|
215
|
+
type: () => {
|
|
216
|
+
return System.Boolean;
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
ControlEvidence: {
|
|
220
|
+
kind: "property",
|
|
221
|
+
type: () => {
|
|
222
|
+
return System.Boolean;
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
ControlPolicy: {
|
|
226
|
+
kind: "property",
|
|
227
|
+
type: () => {
|
|
228
|
+
return System.Boolean;
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
ControlPrincipal: {
|
|
232
|
+
kind: "property",
|
|
233
|
+
type: () => {
|
|
234
|
+
return System.Boolean;
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
ControlThread: {
|
|
238
|
+
kind: "property",
|
|
239
|
+
type: () => {
|
|
240
|
+
return System.Boolean;
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
Execution: {
|
|
244
|
+
kind: "property",
|
|
245
|
+
type: () => {
|
|
246
|
+
return System.Boolean;
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
Flags: {
|
|
250
|
+
kind: "property",
|
|
251
|
+
type: () => {
|
|
252
|
+
return Permissions.SecurityPermissionFlag;
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
Infrastructure: {
|
|
256
|
+
kind: "property",
|
|
257
|
+
type: () => {
|
|
258
|
+
return System.Boolean;
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
RemotingConfiguration: {
|
|
262
|
+
kind: "property",
|
|
263
|
+
type: () => {
|
|
264
|
+
return System.Boolean;
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
SerializationFormatter: {
|
|
268
|
+
kind: "property",
|
|
269
|
+
type: () => {
|
|
270
|
+
return System.Boolean;
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
SkipVerification: {
|
|
274
|
+
kind: "property",
|
|
275
|
+
type: () => {
|
|
276
|
+
return System.Boolean;
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
UnmanagedCode: {
|
|
280
|
+
kind: "property",
|
|
281
|
+
type: () => {
|
|
282
|
+
return System.Boolean;
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
isSealed: true,
|
|
287
|
+
},
|
|
288
|
+
SecurityPermissionFlag: {
|
|
289
|
+
kind: "enum",
|
|
290
|
+
members: {
|
|
291
|
+
NoFlags: {
|
|
292
|
+
kind: "field",
|
|
293
|
+
type: () => {
|
|
294
|
+
return Permissions.SecurityPermissionFlag;
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
Assertion: {
|
|
298
|
+
kind: "field",
|
|
299
|
+
type: () => {
|
|
300
|
+
return Permissions.SecurityPermissionFlag;
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
UnmanagedCode: {
|
|
304
|
+
kind: "field",
|
|
305
|
+
type: () => {
|
|
306
|
+
return Permissions.SecurityPermissionFlag;
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
SkipVerification: {
|
|
310
|
+
kind: "field",
|
|
311
|
+
type: () => {
|
|
312
|
+
return Permissions.SecurityPermissionFlag;
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
Execution: {
|
|
316
|
+
kind: "field",
|
|
317
|
+
type: () => {
|
|
318
|
+
return Permissions.SecurityPermissionFlag;
|
|
319
|
+
},
|
|
320
|
+
},
|
|
321
|
+
ControlThread: {
|
|
322
|
+
kind: "field",
|
|
323
|
+
type: () => {
|
|
324
|
+
return Permissions.SecurityPermissionFlag;
|
|
325
|
+
},
|
|
326
|
+
},
|
|
327
|
+
ControlEvidence: {
|
|
328
|
+
kind: "field",
|
|
329
|
+
type: () => {
|
|
330
|
+
return Permissions.SecurityPermissionFlag;
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
ControlPolicy: {
|
|
334
|
+
kind: "field",
|
|
335
|
+
type: () => {
|
|
336
|
+
return Permissions.SecurityPermissionFlag;
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
SerializationFormatter: {
|
|
340
|
+
kind: "field",
|
|
341
|
+
type: () => {
|
|
342
|
+
return Permissions.SecurityPermissionFlag;
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
ControlDomainPolicy: {
|
|
346
|
+
kind: "field",
|
|
347
|
+
type: () => {
|
|
348
|
+
return Permissions.SecurityPermissionFlag;
|
|
349
|
+
},
|
|
350
|
+
},
|
|
351
|
+
ControlPrincipal: {
|
|
352
|
+
kind: "field",
|
|
353
|
+
type: () => {
|
|
354
|
+
return Permissions.SecurityPermissionFlag;
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
ControlAppDomain: {
|
|
358
|
+
kind: "field",
|
|
359
|
+
type: () => {
|
|
360
|
+
return Permissions.SecurityPermissionFlag;
|
|
361
|
+
},
|
|
362
|
+
},
|
|
363
|
+
RemotingConfiguration: {
|
|
364
|
+
kind: "field",
|
|
365
|
+
type: () => {
|
|
366
|
+
return Permissions.SecurityPermissionFlag;
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
Infrastructure: {
|
|
370
|
+
kind: "field",
|
|
371
|
+
type: () => {
|
|
372
|
+
return Permissions.SecurityPermissionFlag;
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
BindingRedirects: {
|
|
376
|
+
kind: "field",
|
|
377
|
+
type: () => {
|
|
378
|
+
return Permissions.SecurityPermissionFlag;
|
|
379
|
+
},
|
|
380
|
+
},
|
|
381
|
+
AllFlags: {
|
|
382
|
+
kind: "field",
|
|
383
|
+
type: () => {
|
|
384
|
+
return Permissions.SecurityPermissionFlag;
|
|
385
|
+
},
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
},
|
|
389
|
+
});
|
|
390
|
+
export default Permissions
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import System from "../../index.js";
|
|
2
|
+
|
|
3
|
+
import { createLibrary } from "#createLibrary";
|
|
4
|
+
import { LibrarySymbolReference } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
type PrincipalLibrary = LibrarySymbolReference & {
|
|
7
|
+
IIdentity: LibrarySymbolReference & {
|
|
8
|
+
AuthenticationType: LibrarySymbolReference;
|
|
9
|
+
IsAuthenticated: LibrarySymbolReference;
|
|
10
|
+
Name: LibrarySymbolReference
|
|
11
|
+
};
|
|
12
|
+
IPrincipal: LibrarySymbolReference & {
|
|
13
|
+
IsInRole: LibrarySymbolReference;
|
|
14
|
+
Identity: LibrarySymbolReference
|
|
15
|
+
};
|
|
16
|
+
PrincipalPolicy: LibrarySymbolReference & {
|
|
17
|
+
UnauthenticatedPrincipal: LibrarySymbolReference;
|
|
18
|
+
NoPrincipal: LibrarySymbolReference;
|
|
19
|
+
WindowsPrincipal: LibrarySymbolReference
|
|
20
|
+
};
|
|
21
|
+
TokenImpersonationLevel: LibrarySymbolReference & {
|
|
22
|
+
None: LibrarySymbolReference;
|
|
23
|
+
Anonymous: LibrarySymbolReference;
|
|
24
|
+
Identification: LibrarySymbolReference;
|
|
25
|
+
Impersonation: LibrarySymbolReference;
|
|
26
|
+
Delegation: LibrarySymbolReference
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const Principal: PrincipalLibrary = createLibrary("System.Security.Principal", {
|
|
30
|
+
IIdentity: {
|
|
31
|
+
kind: "interface",
|
|
32
|
+
members: {
|
|
33
|
+
AuthenticationType: {
|
|
34
|
+
kind: "property",
|
|
35
|
+
type: () => {
|
|
36
|
+
return System.String;
|
|
37
|
+
},
|
|
38
|
+
isNullable: true,
|
|
39
|
+
},
|
|
40
|
+
IsAuthenticated: {
|
|
41
|
+
kind: "property",
|
|
42
|
+
type: () => {
|
|
43
|
+
return System.Boolean;
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
Name: {
|
|
47
|
+
kind: "property",
|
|
48
|
+
type: () => {
|
|
49
|
+
return System.String;
|
|
50
|
+
},
|
|
51
|
+
isNullable: true,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
IPrincipal: {
|
|
56
|
+
kind: "interface",
|
|
57
|
+
members: {
|
|
58
|
+
IsInRole: {
|
|
59
|
+
kind: "method",
|
|
60
|
+
methodKind: "ordinary",
|
|
61
|
+
},
|
|
62
|
+
Identity: {
|
|
63
|
+
kind: "property",
|
|
64
|
+
type: () => {
|
|
65
|
+
return Principal.IIdentity;
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
PrincipalPolicy: {
|
|
71
|
+
kind: "enum",
|
|
72
|
+
members: {
|
|
73
|
+
UnauthenticatedPrincipal: {
|
|
74
|
+
kind: "field",
|
|
75
|
+
type: () => {
|
|
76
|
+
return Principal.PrincipalPolicy;
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
NoPrincipal: {
|
|
80
|
+
kind: "field",
|
|
81
|
+
type: () => {
|
|
82
|
+
return Principal.PrincipalPolicy;
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
WindowsPrincipal: {
|
|
86
|
+
kind: "field",
|
|
87
|
+
type: () => {
|
|
88
|
+
return Principal.PrincipalPolicy;
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
TokenImpersonationLevel: {
|
|
94
|
+
kind: "enum",
|
|
95
|
+
members: {
|
|
96
|
+
None: {
|
|
97
|
+
kind: "field",
|
|
98
|
+
type: () => {
|
|
99
|
+
return Principal.TokenImpersonationLevel;
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
Anonymous: {
|
|
103
|
+
kind: "field",
|
|
104
|
+
type: () => {
|
|
105
|
+
return Principal.TokenImpersonationLevel;
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
Identification: {
|
|
109
|
+
kind: "field",
|
|
110
|
+
type: () => {
|
|
111
|
+
return Principal.TokenImpersonationLevel;
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
Impersonation: {
|
|
115
|
+
kind: "field",
|
|
116
|
+
type: () => {
|
|
117
|
+
return Principal.TokenImpersonationLevel;
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
Delegation: {
|
|
121
|
+
kind: "field",
|
|
122
|
+
type: () => {
|
|
123
|
+
return Principal.TokenImpersonationLevel;
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
});
|
|
129
|
+
export default Principal
|