Merge "Update comment text of SrcIsModuleWithTag()" am: f6ecb09322

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1767845

Change-Id: Idecc8d9544b5095510903b146f490a410abf39dd
This commit is contained in:
Treehugger Robot
2021-07-15 11:40:19 +00:00
committed by Automerger Merge Worker

View File

@@ -2829,9 +2829,10 @@ func SrcIsModule(s string) (module string) {
return module
}
// SrcIsModule decodes module references in the format ":unqualified-name{.tag}" or
// "//namespace:name{.tag}" into the module name and an empty string for the tag, or empty strings
// if the input was not a module reference.
// SrcIsModuleWithTag decodes module references in the format ":unqualified-name{.tag}" or
// "//namespace:name{.tag}" into the module name and tag, ":unqualified-name" or "//namespace:name"
// into the module name and an empty string for the tag, or empty strings if the input was not a
// module reference.
func SrcIsModuleWithTag(s string) (module, tag string) {
if len(s) > 1 {
if s[0] == ':' {