Boo.Lang.Compiler.TypeSystem.InternalCallableType.GetSignature C# (CSharp) Method

GetSignature() public method

public GetSignature ( ) : CallableSignature
return CallableSignature
        public CallableSignature GetSignature()
        {
            if (null == _signature)
            {
                IMethod invoke = GetInvokeMethod();
                if (null == invoke) return null;
                _signature = invoke.CallableType.GetSignature();
            }
            return _signature;
        }

Usage Example

        void ImplementICallableCall(InternalCallableType type, ClassDefinition node)
        {
            Method call = (Method)node.Members["Call"];
            Debug.Assert(null != call);
            Debug.Assert(call.Body.IsEmpty);

            CallableSignature signature = type.GetSignature();
            int byRefCount = GetByRefParamCount(signature);
            if (byRefCount > 0)
            {
                ImplementByRefICallableCall(call, type, node, signature, byRefCount);
            }
            else
            {
                ImplementRegularICallableCall(call, type, node, signature);
            }
        }