예제 #1
0
 public BoundConstructor(
     List<BoundParameter> boundParameters,
     BoundScopeStatement boundStatements,
     ConstructorSyntax syntax)
     : base(syntax)
 {
     Parameter = boundParameters;
     Statements = boundStatements;
 }
예제 #2
0
 public BoundIfStatement(
     BoundExpression boundExpression,
     BoundScopeStatement boundStatements,
     IfStatementSyntax statementSyntax)
     : base(statementSyntax)
 {
     BoundExpression = boundExpression;
     BoundStatements = boundStatements;
 }
예제 #3
0
 public BoundForStatement(
     BoundStatement initStatement,
     BoundExpression condition,
     BoundStatement loopStatement,
     BoundScopeStatement boundStatements,
     ForStatementSyntax statementSyntax)
     : base(statementSyntax)
 {
     InitStatement = initStatement;
     Condition = condition;
     LoopStatement = loopStatement;
     BoundStatements = boundStatements;
 }
예제 #4
0
파일: Binder.cs 프로젝트: lawl-dev/Kiwi
 private BoundScopeStatement BindScope(ScopeStatementSyntax syntax)
 {
     _contextService.EnterScope();
     var boundScopeStatement = new BoundScopeStatement(
         syntax.Statements.Select(BindStatement).ToList(),
         syntax);
     _contextService.ExitScope();
     return boundScopeStatement;
 }