2022-10-24 23:06:49 +08:00
|
|
|
package components
|
|
|
|
|
|
|
|
type IBlock interface {
|
|
|
|
GetDirectives() []IDirective
|
|
|
|
FindDirectives(directiveName string) []IDirective
|
2022-11-30 17:33:30 +08:00
|
|
|
RemoveDirective(name string, params []string)
|
|
|
|
UpdateDirective(name string, params []string)
|
2022-10-24 23:06:49 +08:00
|
|
|
GetComment() string
|
2022-11-30 17:33:30 +08:00
|
|
|
GetLine() int
|
2022-10-24 23:06:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type IDirective interface {
|
|
|
|
GetName() string
|
|
|
|
GetParameters() []string
|
|
|
|
GetBlock() IBlock
|
|
|
|
GetComment() string
|
2022-11-30 17:33:30 +08:00
|
|
|
GetLine() int
|
2022-10-24 23:06:49 +08:00
|
|
|
}
|