Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for Innermost (0.12 sec)

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

    	return cmpPos(s.pos, pos) <= 0 && cmpPos(pos, s.end) < 0
    }
    
    // Innermost returns the innermost (child) scope containing
    // pos. If pos is not within any scope, the result is nil.
    // The result is also nil for the Universe scope.
    // The result is guaranteed to be valid only if the type-checked
    // AST has complete position information.
    func (s *Scope) Innermost(pos syntax.Pos) *Scope {
    	// Package scopes do not have extents since they may be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. src/go/types/scope.go

    	return cmpPos(s.pos, pos) <= 0 && cmpPos(pos, s.end) < 0
    }
    
    // Innermost returns the innermost (child) scope containing
    // pos. If pos is not within any scope, the result is nil.
    // The result is also nil for the Universe scope.
    // The result is guaranteed to be valid only if the type-checked
    // AST has complete position information.
    func (s *Scope) Innermost(pos token.Pos) *Scope {
    	// Package scopes do not have extents since they may be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/util.go

    }
    
    // InnermostLineNumber returns a string containing the line number for the
    // innermost inlined function (if any inlining) at p's position
    func (p *Prog) InnermostLineNumber() string {
    	return p.Ctxt.InnermostPos(p.Pos).LineNumber()
    }
    
    // InnermostLineNumberHTML returns a string containing the line number for the
    // innermost inlined function (if any inlining) at p's position
    func (p *Prog) InnermostLineNumberHTML() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/decl.go

    	obj.color_ = black
    	fdecl := decl.fdecl
    	check.funcType(sig, fdecl.Recv, fdecl.TParamList, fdecl.Type)
    	obj.color_ = saved
    
    	// Set the scope's extent to the complete "func (...) { ... }"
    	// so that Scope.Innermost works correctly.
    	sig.scope.pos = fdecl.Pos()
    	sig.scope.end = syntax.EndPos(fdecl)
    
    	if len(fdecl.TParamList) > 0 && fdecl.Body == nil {
    		check.softErrorf(fdecl, BadDecl, "generic function is missing function body")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  5. src/text/template/doc.go

    		of the array, slice, or map and T1 is executed.
    
    	{{break}}
    		The innermost {{range pipeline}} loop is ended early, stopping the
    		current iteration and bypassing all remaining iterations.
    
    	{{continue}}
    		The current iteration of the innermost {{range pipeline}} loop is
    		stopped, and the loop starts the next iteration.
    
    	{{template "name"}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    func (path typePath) String() string {
    	n := len(path)
    	var buf bytes.Buffer
    	for i := range path {
    		if i > 0 {
    			fmt.Fprint(&buf, " contains ")
    		}
    		// The human-readable path is in reverse order, outermost to innermost.
    		fmt.Fprint(&buf, path[n-i-1])
    	}
    	return buf.String()
    }
    
    func lockPathRhs(pass *analysis.Pass, x ast.Expr) typePath {
    	x = astutil.Unparen(x) // ignore parens on rhs
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/rangefunc/rewrite.go

    		}
    
    # Nested Loops
    
    So far we've only considered a single loop. If a function contains a
    sequence of loops, each can be translated individually. But loops can
    be nested. It would work to translate the innermost loop and then
    translate the loop around it, and so on, except that there'd be a lot
    of rewriting of rewritten code and the overall traversals could end up
    taking time quadratic in the depth of the nesting. To avoid all that,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  8. src/go/types/decl.go

    	saved := obj.color_
    	obj.color_ = black
    	fdecl := decl.fdecl
    	check.funcType(sig, fdecl.Recv, fdecl.Type)
    	obj.color_ = saved
    
    	// Set the scope's extent to the complete "func (...) { ... }"
    	// so that Scope.Innermost works correctly.
    	sig.scope.pos = fdecl.Pos()
    	sig.scope.end = fdecl.End()
    
    	if fdecl.Type.TypeParams.NumFields() > 0 && fdecl.Body == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  9. src/runtime/stkframe.go

    	//   information.
    	//
    	// - If this frame "called" sigpanic, then pc is the
    	//   instruction that panicked, and pc is the correct address
    	//   to use for symbolic information.
    	//
    	// - If this is the innermost frame, then PC is where
    	//   execution will continue, but it may not be the
    	//   instruction following a CALL. This may be from
    	//   cooperative preemption, in which case this is the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    		if _, ok = seen[obj]; ok {
    			return true
    		}
    		seen[obj] = struct{}{}
    		// Find the scope for the given position. Then, check whether the object
    		// exists within the scope.
    		innerScope := pkg.Scope().Innermost(pos)
    		if innerScope == nil {
    			return true
    		}
    		_, foundObj := innerScope.LookupParent(ident.Name, pos)
    		if foundObj != obj {
    			return true
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top