Skip to content

Commit 0e209b8

Browse files
authored
dsl: add Object.IsGlobal method (#375)
1 parent eb19bc4 commit 0e209b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dsl/dsl.go

+3
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ type TypesObject struct{}
200200
// See https://golang.org/pkg/go/types/.
201201
func (TypesObject) Is(typ string) bool { return boolResult }
202202

203+
// IsGlobal reports whether an associated types.Object is defined in global scope.
204+
func (TypesObject) IsGlobal() bool { return boolResult }
205+
203206
// ExprType describes a type of a matcher expr.
204207
type ExprType struct {
205208
// Size represents expression type size in bytes.

0 commit comments

Comments
 (0)