Boo.Lang.Compiler.Steps.BindTypeMembers.BindEvent C# (CSharp) Метод

BindEvent() приватный Метод

private BindEvent ( Boo.Lang.Compiler.Ast.Event node ) : void
node Boo.Lang.Compiler.Ast.Event
Результат void
        void BindEvent(Event node)
        {
            if (null == node.Entity)
            {
                node.Entity = new InternalEvent(TypeSystemServices, node);
            }

            IType type = GetType(node.Type);
            IType declaringType = GetType(node.DeclaringType);
            bool typeIsCallable = type is ICallableType;
            if (!typeIsCallable)
            {
                Errors.Add(
                    CompilerErrorFactory.EventTypeIsNotCallable(node.Type,
                    type.ToString()));
            }

            if (declaringType.IsInterface)
            {
                BindInterfaceEvent(node);
            }
            else
            {
                BindClassEvent(node, type, typeIsCallable);
            }
        }