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