Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for pop (0.13 sec)

  1. src/cmd/asm/internal/lex/stack.go

    func (s *Stack) Push(tr TokenReader) {
    	s.tr = append(s.tr, tr)
    }
    
    func (s *Stack) Next() ScanToken {
    	tos := s.tr[len(s.tr)-1]
    	tok := tos.Next()
    	for tok == scanner.EOF && len(s.tr) > 1 {
    		tos.Close()
    		// Pop the topmost item from the stack and resume with the next one down.
    		s.tr = s.tr[:len(s.tr)-1]
    		tok = s.Next()
    	}
    	return tok
    }
    
    func (s *Stack) Text() string {
    	return s.tr[len(s.tr)-1].Text()
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jan 09 22:33:23 GMT 2017
    - 1.2K bytes
    - Viewed (0)
  2. src/cmd/api/main_test.go

    func (w *Walker) export(pkg *apiPackage) {
    	if verbose {
    		log.Println(pkg)
    	}
    	pop := w.pushScope("pkg " + pkg.Path())
    	w.current = pkg
    	w.collectDeprecated()
    	scope := pkg.Scope()
    	for _, name := range scope.Names() {
    		if token.IsExported(name) {
    			w.emitObj(scope.Lookup(name))
    		}
    	}
    	pop()
    }
    
    func set(items []string) map[string]bool {
    	s := make(map[string]bool)
    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)
Back to top