18 using System.Collections.Generic;
22 using ErrorManagement;
70 get {
return this.condition; }
78 get {
return this.sectionType; }
95 this.sectionType = SectionType.Case;
96 this.condition = cond;
108 this.sectionType = SectionType.Default;
123 return v.Visit(
this, o);
Abstract class encapsulate a programming language expression.
SectionType SwitchSectionType
Gets the type of the Case statement (case or default)
This class encapsulates a location in a specific file. Implements an Inmutable pattern. So it can be used in any context, that is his internal fields never change.
Abstract class represents a programming language statement.
Encapsulates a switch label (Case + condition or Default section).
override Object Accept(Visitor v, Object o)
Accept method of a concrete visitor.
Location location
Location: Encapsulates in one object the line, column and filename
SwitchLabel(Location location)
Constructor of SwitchLabel
SectionType
Indicates if it is a case statement or a default case.
Expression Condition
Gets the condition expression of Case statement.
SwitchLabel(Expression cond, Location location)
Constructor of SwitchLabel