public ProcedureDeclaration(IntLiteral index, TypeIdentifier returnType, Identifier identifier, List <Parameter> parameters, CompoundStatement body) : base(DeclarationType.Procedure, identifier) { Index = index; ReturnType = returnType; Parameters = parameters; Body = body; }
public override void Visit(CompoundStatement compoundStatement) { if (typeof(T) == typeof(CompoundStatement)) { mCollectedNodes.Add(compoundStatement as T); } base.Visit(compoundStatement); }
public IfStatement(Expression expression, CompoundStatement body, CompoundStatement elseBody) { Condition = expression; Body = body; ElseBody = elseBody; }