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

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

public static SetEntryPoint ( CompilerContext context, Method method ) : void
context CompilerContext
method Boo.Lang.Compiler.Ast.Method
Результат void
        public static void SetEntryPoint(CompilerContext context, Method method)
        {
            if (null == method)
            {
                throw new ArgumentNullException("method");
            }

            Method current = GetEntryPoint(context);
            if (null != current)
            {
                throw CompilerErrorFactory.MoreThanOneEntryPoint(method);
            }
            context.Properties[EntryPointKey] = method;
        }

Usage Example

Пример #1
0
        private void SetEntryPointIfNecessary(Method entryPoint)
        {
            if (null == entryPoint)
            {
                return;
            }

            if (Parameters.OutputType == CompilerOutputType.Library)
            {
                return;
            }

            ContextAnnotations.SetEntryPoint(Context, entryPoint);
        }
All Usage Examples Of Boo.Lang.Compiler.Steps.ContextAnnotations::SetEntryPoint