@@ -42,7 +42,7 @@ public SimpleflowCodeVisitor(IFunctionRegister functionRegister, ParserEventPubl
4242 InputParam = Expression . Parameter ( typeof ( TArg ) ) ;
4343 OutputParam = Expression . Parameter ( typeof ( FlowOutput ) ) ;
4444 // use context parameter name in order to access in script
45- ScriptHelperContextParam = Expression . Parameter ( typeof ( ScriptHelperContext ) ) ;
45+ ScriptHelperContextParam = Expression . Parameter ( typeof ( RuntimeContext ) ) ;
4646
4747 /* A label expression of the void type that is the target for Expression.Return(). */
4848 TargetLabelToExitFunction = Expression . Label ( ) ;
@@ -67,8 +67,8 @@ public override Expression VisitProgram(SimpleflowParser.ProgramContext context)
6767 Expression body = Expression . Block ( Variables , statementExpressions ) ;
6868
6969 /* Create function with input and output parameters */
70- Expression < Action < TArg , FlowOutput , ScriptHelperContext > > program =
71- Expression . Lambda < Action < TArg /*input-context*/ , FlowOutput , ScriptHelperContext > > (
70+ Expression < Action < TArg , FlowOutput , RuntimeContext > > program =
71+ Expression . Lambda < Action < TArg /*input-context*/ , FlowOutput , RuntimeContext > > (
7272 body ,
7373 new ParameterExpression [ ] { InputParam , OutputParam , ScriptHelperContextParam }
7474 ) ;
@@ -234,7 +234,7 @@ private void ReplaceVirtualSmartVariablesWithReal(List<Expression> statementExpr
234234 private List < Expression > CreateDefaultVariablesAndAssign ( )
235235 {
236236 var argVar = Expression . Variable ( typeof ( TArg ) , "arg" ) ;
237- var contextVar = Expression . Variable ( typeof ( ScriptHelperContext ) , "context" ) ;
237+ var contextVar = Expression . Variable ( typeof ( RuntimeContext ) , "context" ) ;
238238
239239 Variables . Add ( argVar ) ;
240240 Variables . Add ( contextVar ) ;
0 commit comments