MCPcopy
hub / github.com/golang/tools / IsCommandLineArguments

Function IsCommandLineArguments

gopls/internal/cache/metadata/metadata.go:184–186  ·  view source on GitHub ↗

TODO(rfindley): move the utility functions below to a util.go file. IsCommandLineArguments reports whether a given value denotes "command-line-arguments" package, which is a package with an unknown ID created by the go command. It can have a test variant, which is why callers should not check that a

(id PackageID)

Source from the content-addressed store, hash-verified

182// created by the go command. It can have a test variant, which is why callers
183// should not check that a value equals "command-line-arguments" directly.
184func IsCommandLineArguments(id PackageID) bool {
185 return strings.Contains(string(id), "command-line-arguments")
186}
187
188// SortPostOrder sorts the IDs so that if x depends on y, then y appears before x.
189func SortPostOrder(meta Source, ids []PackageID) {

Callers 13

buildMetadataFunction · 0.92
isWorkspacePackageLockedFunction · 0.92
allFilesHaveRealPackagesFunction · 0.92
SnapshotOfMethod · 0.92
importPackageMethod · 0.92
missingPkgErrorFunction · 0.92
cloneMethod · 0.92
hoverPackageNameFunction · 0.92
AddTestForFuncFunction · 0.92
dynamicSymbolMatchFunction · 0.92
IsValidImportFunction · 0.85

Calls 1

ContainsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…