Reworked function handling, support for type checking internal CSharp functions

This commit is contained in:
2018-11-30 15:28:36 +01:00
parent 81a6b05b26
commit f08d1c2541
23 changed files with 271 additions and 135 deletions

View File

@@ -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