ABT.Env2.InFunction C# (CSharp) Метод

InFunction() публичный метод

public InFunction ( FunctionType functionType, ImmutableList functionParams ) : Env2
functionType FunctionType
functionParams ImmutableList
Результат Env2
        public Env2 InFunction(FunctionType functionType, ImmutableList<ParameterObjectEntry> functionParams) {
            if (this._functionScope.IsSome) {
                throw new InvalidProgramException("Is already in a function. Cannot go in function.");
            }
            return new Env2(
                this._globalSymbolTable,
                Option.Some(new FunctionScope(functionType, functionParams))
            );
        }