MCPcopy Create free account
hub / github.com/dolthub/doltgresql / HasAnyFlags

Method HasAnyFlags

postgres/parser/sem/tree/format.go:47–49  ·  view source on GitHub ↗

HasAnyFlags tests whether any of the given flags are all set.

(subset FmtFlags)

Source from the content-addressed store, hash-verified

45
46// HasAnyFlags tests whether any of the given flags are all set.
47func (f FmtFlags) HasAnyFlags(subset FmtFlags) bool {
48 return f&subset != 0
49}
50
51// EncodeFlags returns the subset of the flags that are also lex encode flags.
52func (f FmtFlags) EncodeFlags() lex.EncodeFlags {

Callers 1

FormatNodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected