MCPcopy Create free account
hub / github.com/brimdata/super / queryDecl

Method queryDecl

compiler/semantic/op.go:1342–1350  ·  view source on GitHub ↗
(q *ast.QueryDecl)

Source from the content-addressed store, hash-verified

1340}
1341
1342func (t *translator) queryDecl(q *ast.QueryDecl) {
1343 decl := &queryDecl{
1344 decl: q,
1345 scope: t.scope,
1346 }
1347 if err := t.scope.BindSymbol(q.Name.Name, decl); err != nil {
1348 t.error(q.Name, err)
1349 }
1350}
1351
1352func (t *translator) typeDecl(d *ast.TypeDecl) {
1353 typ, err := t.semType(d.Type)

Callers 1

declsMethod · 0.95

Calls 2

BindSymbolMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected