feat(aa): a Constraint and Kind method to the Rule interface.
This commit is contained in:
parent
a5c4eab0cf
commit
f763d31a07
18 changed files with 210 additions and 19 deletions
|
|
@ -48,7 +48,15 @@ func (p *Profile) Equals(other any) bool {
|
|||
}
|
||||
|
||||
func (p *Profile) String() string {
|
||||
return renderTemplate(tokPROFILE, p)
|
||||
return renderTemplate(p.Kind(), p)
|
||||
}
|
||||
|
||||
func (p *Profile) Constraint() constraint {
|
||||
return blockKind
|
||||
}
|
||||
|
||||
func (p *Profile) Kind() string {
|
||||
return tokPROFILE
|
||||
}
|
||||
|
||||
// Merge merge similar rules together.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue