-
Notifications
You must be signed in to change notification settings - Fork 0
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 #1 from Shimakaze-Kan/release_v1_1
Release v1 1
- Loading branch information
Showing
9 changed files
with
331 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
namespace GNScript.Models; | ||
public record UserDefinedExtension(string Type, List<string> FunctionParameterNames, AstNode FunctionBody); |
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,28 @@ | ||
namespace GNScript.Models; | ||
public class UserDefinedExtensionKey | ||
{ | ||
public string ExtensionName { get; } | ||
public int NumberOfParameters { get; } | ||
|
||
public UserDefinedExtensionKey(string extensionName, int numberOfParameters) | ||
{ | ||
ExtensionName = extensionName; | ||
NumberOfParameters = numberOfParameters; | ||
} | ||
|
||
public override bool Equals(object? obj) | ||
{ | ||
if (obj == null) | ||
return false; | ||
|
||
if (obj is UserDefinedExtensionKey other == false) | ||
return false; | ||
|
||
return other.ExtensionName == ExtensionName && other.NumberOfParameters == NumberOfParameters; | ||
} | ||
|
||
public override int GetHashCode() | ||
{ | ||
return HashCode.Combine(ExtensionName, NumberOfParameters); | ||
} | ||
} |
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
Oops, something went wrong.