Skip to content

Commit

Permalink
dsl: add Object.IsGlobal method (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
peakle committed Feb 2, 2022
1 parent eb19bc4 commit 0e209b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dsl/dsl.go
Expand Up @@ -200,6 +200,9 @@ type TypesObject struct{}
// See https://golang.org/pkg/go/types/.
func (TypesObject) Is(typ string) bool { return boolResult }

// IsGlobal reports whether an associated types.Object is defined in global scope.
func (TypesObject) IsGlobal() bool { return boolResult }

// ExprType describes a type of a matcher expr.
type ExprType struct {
// Size represents expression type size in bytes.
Expand Down

0 comments on commit 0e209b8

Please sign in to comment.