MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / IsGeneratorClass

Method IsGeneratorClass

pkg/sql/sem/tree/expr.go:1315–1317  ·  view source on GitHub ↗

IsGeneratorClass returns true if the resolved overload metadata is of the GeneratorClass.

()

Source from the content-addressed store, hash-verified

1313// IsGeneratorClass returns true if the resolved overload metadata is of
1314// the GeneratorClass.
1315func (node *FuncExpr) IsGeneratorClass() bool {
1316 return node.ResolvedOverload() != nil && node.ResolvedOverload().Class == GeneratorClass
1317}
1318
1319// IsWindowFunctionApplication returns true iff the function is being applied as a window function.
1320func (node *FuncExpr) IsWindowFunctionApplication() bool {

Callers

nothing calls this directly

Calls 1

ResolvedOverloadMethod · 0.95

Tested by

no test coverage detected