DeclareLambdaFunction {SMRUCC.Rsharp.Interpreter.ExecuteEngine.ExpressionSymbols.Closure} | .NET clr documentation |
只允许简单的表达式出现在这里 并且参数也只允许出现一个
a subclass of SymbolExpression (lambda函数与普通函数相比,lambda函数是没有environment的 所以lambda函数会更加的轻量化)
# namespace SMRUCC.Rsharp.Interpreter.ExecuteEngine.ExpressionSymbols.Closure
export class DeclareLambdaFunction extends SymbolExpression {
closure: Expression;
expressionName: ExpressionTypes;
isCallable: boolean;
name: string;
parameterNames: string;
stackFrame: StackFrame;
type: TypeCodes;
}
closure
: ExpressionexpressionName
: ExpressionTypesstackFrame
: StackFrametype
: TypeCodes