Beispiel #1
0
        public CallSignature(params ArgumentType[] kinds) {
            bool simple = true;

            if (kinds != null) {
                _argumentCount = kinds.Length;
                for (int i = 0; i < kinds.Length; i++) {
                    if (kinds[i] != ArgumentType.Simple) {
                        simple = false;
                        break;
                    }
                }
            } else {
                _argumentCount = 0;
            }

            if (!simple) {
                _infos = new Argument[kinds.Length];
                for (int i = 0; i < kinds.Length; i++) {
                    _infos[i] = new Argument(kinds[i]);
                }
            } else {
                _infos = null;
            }
        }
Beispiel #2
0
 public CallSignature InsertArgument(Argument info) {
     return InsertArgumentAt(0, info);
 }