public BoundConstructor( List<BoundParameter> boundParameters, BoundScopeStatement boundStatements, ConstructorSyntax syntax) : base(syntax) { Parameter = boundParameters; Statements = boundStatements; }
public BoundIfStatement( BoundExpression boundExpression, BoundScopeStatement boundStatements, IfStatementSyntax statementSyntax) : base(statementSyntax) { BoundExpression = boundExpression; BoundStatements = boundStatements; }
public BoundForStatement( BoundStatement initStatement, BoundExpression condition, BoundStatement loopStatement, BoundScopeStatement boundStatements, ForStatementSyntax statementSyntax) : base(statementSyntax) { InitStatement = initStatement; Condition = condition; LoopStatement = loopStatement; BoundStatements = boundStatements; }
private BoundScopeStatement BindScope(ScopeStatementSyntax syntax) { _contextService.EnterScope(); var boundScopeStatement = new BoundScopeStatement( syntax.Statements.Select(BindStatement).ToList(), syntax); _contextService.ExitScope(); return boundScopeStatement; }