示例#1
0
        public FunctionScope(Scope parent, FunctionDeclaration function)
            : base(parent)
        {
            if (function == null)
                ThrowHelper.ThrowArgumentNullException(() => function);

            Function = function;
        }
示例#2
0
 public static FunctionScope CreateFunctionScope(this Scope scope, FunctionDeclaration function)
 {
     if (function == null)
         ThrowHelper.ThrowArgumentNullException(() => function);
     return new FunctionScope(scope, function);
 }