feat(aa): be more verbose on rule.Merge
This commit is contained in:
parent
880f0ef37e
commit
7c006dee0a
11 changed files with 69 additions and 29 deletions
|
|
@ -49,6 +49,10 @@ func (r *Comment) Compare(other Rule) int {
|
|||
return 0 // Comments are always equal to each other as they are not compared
|
||||
}
|
||||
|
||||
func (r *Comment) Merge(other Rule) bool {
|
||||
return false // Never merge comments
|
||||
}
|
||||
|
||||
type Abi struct {
|
||||
Base
|
||||
Path string
|
||||
|
|
@ -101,6 +105,10 @@ func (r *Abi) Compare(other Rule) int {
|
|||
return compare(r.IsMagic, o.IsMagic)
|
||||
}
|
||||
|
||||
func (r *Abi) Merge(other Rule) bool {
|
||||
return false // Never merge abi
|
||||
}
|
||||
|
||||
type Alias struct {
|
||||
Base
|
||||
Path string
|
||||
|
|
@ -145,6 +153,10 @@ func (r *Alias) Compare(other Rule) int {
|
|||
return compare(r.RewrittenPath, o.RewrittenPath)
|
||||
}
|
||||
|
||||
func (r *Alias) Merge(other Rule) bool {
|
||||
return false // Never merge alias
|
||||
}
|
||||
|
||||
type Include struct {
|
||||
Base
|
||||
IfExists bool
|
||||
|
|
@ -218,6 +230,10 @@ func (r *Include) Compare(other Rule) int {
|
|||
return compare(r.IfExists, o.IfExists)
|
||||
}
|
||||
|
||||
func (r *Include) Merge(other Rule) bool {
|
||||
return false // Never merge include
|
||||
}
|
||||
|
||||
type Variable struct {
|
||||
Base
|
||||
Name string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue