Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for enclosingTarget (0.2 sec)

  1. src/cmd/compile/internal/types2/labels.go

    	for s := b; s != nil; s = s.parent {
    		if t := s.labels[name]; t != nil {
    			return t
    		}
    	}
    	return nil
    }
    
    // enclosingTarget returns the innermost enclosing labeled
    // statement with the given label name, or nil.
    func (b *block) enclosingTarget(name string) *syntax.LabeledStmt {
    	for s := b; s != nil; s = s.parent {
    		if t := s.lstmt; t != nil && t.Label.Value == name {
    			return t
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. src/go/types/labels.go

    	for s := b; s != nil; s = s.parent {
    		if t := s.labels[name]; t != nil {
    			return t
    		}
    	}
    	return nil
    }
    
    // enclosingTarget returns the innermost enclosing labeled
    // statement with the given label name, or nil.
    func (b *block) enclosingTarget(name string) *ast.LabeledStmt {
    	for s := b; s != nil; s = s.parent {
    		if t := s.lstmt; t != nil && t.Label.Name == name {
    			return t
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/branches.go

    }
    
    var invalid = new(LabeledStmt) // singleton to signal invalid enclosing target
    
    // enclosingTarget returns the innermost enclosing labeled statement matching
    // the given name. The result is nil if the label is not defined, and invalid
    // if the label is defined but doesn't label a valid labeled statement.
    func (ls *labelScope) enclosingTarget(b *block, name string) *LabeledStmt {
    	if l := ls.labels[name]; l != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Jun 26 00:21:29 UTC 2022
    - 9.8K bytes
    - Viewed (0)
Back to top