Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for openScope (0.07 sec)

  1. src/go/printer/testdata/parser.go

    	// there are other parser entry points (ParseExpr, etc.)
    	p.openScope()
    	p.pkgScope = p.topScope
    
    	// for the same reason, set up a label scope
    	p.openLabelScope()
    }
    
    // ----------------------------------------------------------------------------
    // Scoping support
    
    func (p *parser) openScope() {
    	p.topScope = ast.NewScope(p.topScope)
    }
    
    func (p *parser) closeScope() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
Back to top