Boo.Lang.Compiler.Steps.ContextAnnotations.GetEntryPoint C# (CSharp) Метод

GetEntryPoint() публичный статический Метод

public static GetEntryPoint ( CompilerContext context ) : Method
context CompilerContext
Результат Boo.Lang.Compiler.Ast.Method
        public static Method GetEntryPoint(CompilerContext context)
        {
            if (null == context)
            {
                throw new ArgumentNullException("context");
            }
            return (Method)context.Properties[EntryPointKey];
        }

Usage Example

Пример #1
0
        private void BindAllParameters()
        {
            Method entryPoint = ContextAnnotations.GetEntryPoint(Context);

            foreach (INodeWithParameters node in _parameters)
            {
                var member = (TypeMember)node;

                if (member.ContainsAnnotation(PrivateMemberNeverUsed))
                {
                    continue;
                }

                NameResolutionService.EnterNamespace((INamespace)TypeSystemServices.GetEntity(member.DeclaringType));
                CodeBuilder.BindParameterDeclarations(member.IsStatic, node);
                if (!member.IsVisible && !member.IsSynthetic)
                {
                    IExplicitMember explicitMember = member as IExplicitMember;
                    if (null != explicitMember && null != explicitMember.ExplicitInfo)
                    {
                        continue;
                    }
                    if (member == entryPoint)                     //private Main is fine
                    {
                        continue;
                    }
                    member.Annotate(PrivateMemberNeverUsed, null);
                }
            }
        }
All Usage Examples Of Boo.Lang.Compiler.Steps.ContextAnnotations::GetEntryPoint