-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from canhorn/bug/fix_constructor_no_namespace_…
…generation Fixed No Namespace issue found in Accessors, Methods, Properties and constructors.
- Loading branch information
Showing
19 changed files
with
317 additions
and
11 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
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
61 changes: 61 additions & 0 deletions
61
...ts/GenerateClassStatementStringTests/Accessors/Scenarios/StaticNoNamespace.d.Expected.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,61 @@ | ||
/// Generated - Do Not Edit | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using System.Threading.Tasks; | ||
using EventHorizon.Blazor.Interop; | ||
using EventHorizon.Blazor.Interop.Callbacks; | ||
using Microsoft.JSInterop; | ||
|
||
|
||
|
||
[JsonConverter(typeof(CachedEntityConverter<ExampleClass>))] | ||
public class ExampleClass : CachedEntityObject | ||
{ | ||
#region Static Accessors | ||
|
||
public static decimal Now | ||
{ | ||
get | ||
{ | ||
return EventHorizonBlazorInterop.Get<decimal>( | ||
"ExampleClass", | ||
"Now" | ||
); | ||
} | ||
} | ||
#endregion | ||
|
||
#region Static Properties | ||
|
||
#endregion | ||
|
||
#region Static Methods | ||
|
||
#endregion | ||
|
||
#region Accessors | ||
|
||
#endregion | ||
|
||
#region Properties | ||
|
||
#endregion | ||
|
||
#region Constructor | ||
public ExampleClass() : base() { } | ||
|
||
public ExampleClass( | ||
ICachedEntity entity | ||
) : base(entity) | ||
{ | ||
___guid = entity.___guid; | ||
} | ||
|
||
|
||
#endregion | ||
|
||
#region Methods | ||
|
||
#endregion | ||
} |
3 changes: 3 additions & 0 deletions
3
...erator.Tests/GenerateClassStatementStringTests/Accessors/Scenarios/StaticNoNamespace.d.ts
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,3 @@ | ||
export class ExampleClass { | ||
static get Now(): number; | ||
} |
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
60 changes: 60 additions & 0 deletions
60
...ts/GenerateClassStatementStringTests/Constructors/NoNamespaceWithArguments.d.Expected.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,60 @@ | ||
/// Generated - Do Not Edit | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using System.Threading.Tasks; | ||
using EventHorizon.Blazor.Interop; | ||
using EventHorizon.Blazor.Interop.Callbacks; | ||
using Microsoft.JSInterop; | ||
|
||
|
||
|
||
[JsonConverter(typeof(CachedEntityConverter<ExampleClass>))] | ||
public class ExampleClass : CachedEntityObject | ||
{ | ||
#region Static Accessors | ||
|
||
#endregion | ||
|
||
#region Static Properties | ||
|
||
#endregion | ||
|
||
#region Static Methods | ||
|
||
#endregion | ||
|
||
#region Accessors | ||
|
||
#endregion | ||
|
||
#region Properties | ||
|
||
#endregion | ||
|
||
#region Constructor | ||
public ExampleClass() : base() { } | ||
|
||
public ExampleClass( | ||
ICachedEntity entity | ||
) : base(entity) | ||
{ | ||
___guid = entity.___guid; | ||
} | ||
|
||
public ExampleClass( | ||
string arg1 | ||
) | ||
{ | ||
var entity = EventHorizonBlazorInterop.New( | ||
new string[] { "ExampleClass" }, | ||
arg1 | ||
); | ||
___guid = entity.___guid; | ||
} | ||
#endregion | ||
|
||
#region Methods | ||
|
||
#endregion | ||
} |
3 changes: 3 additions & 0 deletions
3
...erator.Tests/GenerateClassStatementStringTests/Constructors/NoNamespaceWithArguments.d.ts
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,3 @@ | ||
export class ExampleClass { | ||
constructor(arg1: string); | ||
} |
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
59 changes: 59 additions & 0 deletions
59
...ests/GenerateClassStatementStringTests/Methods/Scenarios/StaticNoNamespace.d.Expected.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,59 @@ | ||
/// Generated - Do Not Edit | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using System.Threading.Tasks; | ||
using EventHorizon.Blazor.Interop; | ||
using EventHorizon.Blazor.Interop.Callbacks; | ||
using Microsoft.JSInterop; | ||
|
||
|
||
|
||
[JsonConverter(typeof(CachedEntityConverter<ExampleClass>))] | ||
public class ExampleClass : CachedEntityObject | ||
{ | ||
#region Static Accessors | ||
|
||
#endregion | ||
|
||
#region Static Properties | ||
|
||
#endregion | ||
|
||
#region Static Methods | ||
public static decimal numberMethod() | ||
{ | ||
return EventHorizonBlazorInterop.Func<decimal>( | ||
new object[] | ||
{ | ||
new string[] { "ExampleClass", "numberMethod" } | ||
} | ||
); | ||
} | ||
#endregion | ||
|
||
#region Accessors | ||
|
||
#endregion | ||
|
||
#region Properties | ||
|
||
#endregion | ||
|
||
#region Constructor | ||
public ExampleClass() : base() { } | ||
|
||
public ExampleClass( | ||
ICachedEntity entity | ||
) : base(entity) | ||
{ | ||
___guid = entity.___guid; | ||
} | ||
|
||
|
||
#endregion | ||
|
||
#region Methods | ||
|
||
#endregion | ||
} |
3 changes: 3 additions & 0 deletions
3
...enerator.Tests/GenerateClassStatementStringTests/Methods/Scenarios/StaticNoNamespace.d.ts
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,3 @@ | ||
export class ExampleClass { | ||
static numberMethod(): number; | ||
} |
Oops, something went wrong.