support label and annotation selection in replacement targets

This commit is contained in:
natasha41575
2021-10-07 15:58:50 -07:00
parent 605239a1e5
commit ef5f1d347d
3 changed files with 198 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
package resid
import (
"reflect"
"strings"
)
@@ -129,3 +130,9 @@ func (id ResId) EffectiveNamespace() string {
}
return id.Namespace
}
// IsEmpty returns true of all of the id's fields are
// empty strings
func (id ResId) IsEmpty() bool {
return reflect.DeepEqual(id, ResId{})
}