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