- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for scope (0.16 sec)
-
src/cmd/api/main_test.go
return pkg, nil } // pushScope enters a new scope (walking a package, type, node, etc) // and returns a function that will leave the scope (with sanity checking // for mismatched pushes & pops) func (w *Walker) pushScope(name string) (popFunc func()) { w.scope = append(w.scope, name) return func() { if len(w.scope) == 0 { log.Fatalf("attempt to leave scope %q with empty scope list", name) }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Apr 09 20:48:51 GMT 2024 - 31.4K bytes - Viewed (0) -
src/cmd/asm/internal/asm/asm.go
func (p *Parser) asmText(operands [][]lex.Token) { if len(operands) != 2 && len(operands) != 3 { p.errorf("expect two or three operands for TEXT") return } // Labels are function scoped. Patch existing labels and // create a new label space for this TEXT. p.patch() p.labels = make(map[string]*obj.Prog) // Operand 0 is the symbol name in the form foo(SB).
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Feb 21 14:34:57 GMT 2024 - 25.3K bytes - Viewed (0)