2022-10-24 15:06:49 +00:00
|
|
|
package components
|
|
|
|
|
|
|
|
type Directive struct {
|
2022-11-30 09:33:30 +00:00
|
|
|
Line int
|
2022-10-24 15:06:49 +00:00
|
|
|
Block IBlock
|
|
|
|
Name string
|
|
|
|
Comment string
|
|
|
|
Parameters []string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (d *Directive) GetComment() string {
|
|
|
|
return d.Comment
|
|
|
|
}
|
|
|
|
|
|
|
|
func (d *Directive) GetName() string {
|
|
|
|
return d.Name
|
|
|
|
}
|
|
|
|
|
|
|
|
func (d *Directive) GetParameters() []string {
|
|
|
|
return d.Parameters
|
|
|
|
}
|
|
|
|
|
|
|
|
func (d *Directive) GetBlock() IBlock {
|
|
|
|
return d.Block
|
|
|
|
}
|
2022-11-30 09:33:30 +00:00
|
|
|
|
|
|
|
func (d *Directive) GetLine() int {
|
|
|
|
return d.Line
|
|
|
|
}
|