Skip to content

Commit 1126dcb

Browse files
kblokclaude
andauthored
Aot fix constructors (#11)
* Change private JsonConstructor constructors to internal for AOT The source generator cannot access private constructors even when annotated with [JsonConstructor], causing "types without a parameterless constructor" errors in AOT mode. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Bump version to 0.0.40-beta.6 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * remove docs --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7ad59d2 commit 1126dcb

40 files changed

Lines changed: 39 additions & 117 deletions

.github/workflows/docs.yml

Lines changed: 0 additions & 78 deletions
This file was deleted.

src/WebDriverBiDi/Bluetooth/CharacteristicEventGeneratedEventArgs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace WebDriverBiDi.Bluetooth;
1313
public record CharacteristicEventGeneratedEventArgs : WebDriverBiDiEventArgs
1414
{
1515
[JsonConstructor]
16-
private CharacteristicEventGeneratedEventArgs()
16+
internal CharacteristicEventGeneratedEventArgs()
1717
{
1818
}
1919

src/WebDriverBiDi/Bluetooth/DescriptorEventGeneratedEventArgs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace WebDriverBiDi.Bluetooth;
1313
public record DescriptorEventGeneratedEventArgs : WebDriverBiDiEventArgs
1414
{
1515
[JsonConstructor]
16-
private DescriptorEventGeneratedEventArgs()
16+
internal DescriptorEventGeneratedEventArgs()
1717
{
1818
}
1919

src/WebDriverBiDi/Bluetooth/GattConnectionAttemptedEventArgs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace WebDriverBiDi.Bluetooth;
1313
public record GattConnectionAttemptedEventArgs : WebDriverBiDiEventArgs
1414
{
1515
[JsonConstructor]
16-
private GattConnectionAttemptedEventArgs()
16+
internal GattConnectionAttemptedEventArgs()
1717
{
1818
}
1919

src/WebDriverBiDi/Bluetooth/RequestDeviceInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace WebDriverBiDi.Bluetooth;
1313
public record RequestDeviceInfo
1414
{
1515
[JsonConstructor]
16-
private RequestDeviceInfo()
16+
internal RequestDeviceInfo()
1717
{
1818
}
1919

src/WebDriverBiDi/Bluetooth/RequestDevicePromptUpdatedEventArgs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace WebDriverBiDi.Bluetooth;
1313
public record RequestDevicePromptUpdatedEventArgs : WebDriverBiDiEventArgs
1414
{
1515
[JsonConstructor]
16-
private RequestDevicePromptUpdatedEventArgs()
16+
internal RequestDevicePromptUpdatedEventArgs()
1717
{
1818
}
1919

src/WebDriverBiDi/Browser/ClientWindowInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public record ClientWindowInfo
1616
/// Initializes a new instance of the <see cref="ClientWindowInfo"/> class.
1717
/// </summary>
1818
[JsonConstructor]
19-
private ClientWindowInfo()
19+
internal ClientWindowInfo()
2020
{
2121
}
2222

src/WebDriverBiDi/Browser/UserContextInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace WebDriverBiDi.Browser;
1313
public record UserContextInfo
1414
{
1515
[JsonConstructor]
16-
private UserContextInfo()
16+
internal UserContextInfo()
1717
{
1818
}
1919

src/WebDriverBiDi/BrowsingContext/BrowsingContextInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace WebDriverBiDi.BrowsingContext;
1313
public record BrowsingContextInfo
1414
{
1515
[JsonConstructor]
16-
private BrowsingContextInfo()
16+
internal BrowsingContextInfo()
1717
{
1818
}
1919

src/WebDriverBiDi/BrowsingContext/CaptureScreenshotCommandResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace WebDriverBiDi.BrowsingContext;
1313
public record CaptureScreenshotCommandResult : CommandResult
1414
{
1515
[JsonConstructor]
16-
private CaptureScreenshotCommandResult()
16+
internal CaptureScreenshotCommandResult()
1717
{
1818
}
1919

0 commit comments

Comments
 (0)