Reworked function handling, support for type checking internal CSharp functions
This commit is contained in:
@@ -24,6 +24,11 @@ namespace Upsilon.BaseTypes.ScriptFunction
|
||||
private readonly bool _passScriptReference;
|
||||
public System.Type ReturnType { get; }
|
||||
|
||||
public IEnumerable<System.Type> GetParameterTypes()
|
||||
{
|
||||
return _method.GetMethods().First().Parameters.Select(x => x.Type);
|
||||
}
|
||||
|
||||
public override ScriptType Run(Diagnostics diagnostics, ScriptType[] variables, Script script)
|
||||
{
|
||||
var types = _directTypeManipulation
|
||||
|
||||
Reference in New Issue
Block a user