Handling for type checking parameters of internal functions

This commit is contained in:
2018-11-30 16:19:25 +01:00
parent f08d1c2541
commit 00178cfa82
4 changed files with 30 additions and 19 deletions

View File

@@ -24,9 +24,9 @@ namespace Upsilon.BaseTypes.ScriptFunction
private readonly bool _passScriptReference;
public System.Type ReturnType { get; }
public IEnumerable<System.Type> GetParameterTypes()
public IEnumerable<UserDataMethod.UserDataMethodParameter> GetParameterInfo()
{
return _method.GetMethods().First().Parameters.Select(x => x.Type);
return _method.GetMethods().First().Parameters;
}
public override ScriptType Run(Diagnostics diagnostics, ScriptType[] variables, Script script)