コード例 #1
0
ファイル: Function.cs プロジェクト: ronsaldo/chela
        public void SetFunctionType(FunctionType type)
        {
            this.type = type;

            // Update the argument array.
            int count = type.GetArgumentCount();
            arguments = new ArgumentData[count];
            for(int i = 0; i < count; ++i)
            {
                ArgumentData arg = new ArgumentData(type.GetArgument(i), i);
                arguments[i] = arg;
            }
        }