public StmtBlock(ProcAST proc, StmtBlockRaw raw) { _Proc = proc; Raw = raw; Stmts = new List <Stmt>(); this._ProcContext = proc.GetContextProc(); }
private StmtBlockRaw ParseStmtBlockRaw(int col) { StmtBlockRaw stmtBlock = new StmtBlockRaw(); while (tape.HasCurrent && tape.Current.StartCol > col) { stmtBlock.LineTokens.Add(tape.Current); TapeMoveNext(); } return(stmtBlock); }
private StmtBlockRaw ParseProcBody() { StmtBlockRaw raw = new StmtBlockRaw(); while (tape.HasCurrent && !IsSectionHead(tape.Current)) { raw.LineTokens.Add(tape.Current); tape.MoveNext(); } return(raw); }
public StmtBlock(Stmt parentStmt, StmtBlockRaw raw) { ParentStmt = parentStmt; Raw = raw; Stmts = new List <Stmt>(); }