Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Innermost (0.35 sec)

  1. src/runtime/traceback.go

    }
    
    func (u *unwinder) valid() bool {
    	return u.frame.pc != 0
    }
    
    // resolveInternal fills in u.frame based on u.frame.fn, pc, and sp.
    //
    // innermost indicates that this is the first resolve on this stack. If
    // innermost is set, isSyscall indicates that the PC/SP was retrieved from
    // gp.syscall*; this is otherwise ignored.
    //
    // On entry, u.frame contains:
    //   - fn is the running function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/api_test.go

    		if m == nil {
    			t.Errorf("%s: bad comment: %s", pos, text)
    			return
    		}
    		name, want := m[1], m[2]
    
    		// Look up the name in the innermost enclosing scope.
    		inner := mainScope.Innermost(pos)
    		if inner == nil {
    			t.Errorf("%s: at %s: can't find innermost scope", pos, text)
    			return
    		}
    		got := "undef"
    		if _, obj := inner.LookupParent(name, pos); obj != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  3. src/go/printer/testdata/parser.go

    	// Go spec: The scope of a constant or variable identifier declared inside
    	// a function begins at the end of the ConstSpec or VarSpec and ends at
    	// the end of the innermost containing block.
    	// (Global identifiers are resolved in a separate phase after parsing.)
    	spec := &ast.ValueSpec{doc, idents, typ, values, p.lineComment}
    	p.declare(spec, p.topScope, ast.Con, idents...)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  4. src/go/types/api_test.go

    					fset.Position(comment.Pos()), comment.Text)
    				continue
    			}
    			name, want := m[1], m[2]
    
    			// Look up the name in the innermost enclosing scope.
    			inner := mainScope.Innermost(comment.Pos())
    			if inner == nil {
    				t.Errorf("%s: at %s: can't find innermost scope",
    					fset.Position(comment.Pos()), comment.Text)
    				continue
    			}
    			got := "undef"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  5. src/go/types/expr.go

    		check.overflow(x, e.Pos())
    
    	case *ast.FuncLit:
    		if sig, ok := check.typ(e.Type).(*Signature); ok {
    			// Set the Scope's extent to the complete "func (...) {...}"
    			// so that Scope.Innermost works correctly.
    			sig.scope.pos = e.Pos()
    			sig.scope.end = e.End()
    			if !check.conf.IgnoreFuncBodies && e.Body != nil {
    				// Anonymous functions are considered part of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  6. src/net/http/request.go

    	//
    	// For client requests, a value of 0 with a non-nil Body is
    	// also treated as unknown.
    	ContentLength int64
    
    	// TransferEncoding lists the transfer encodings from outermost to
    	// innermost. An empty list denotes the "identity" encoding.
    	// TransferEncoding can usually be ignored; chunked encoding is
    	// automatically added and removed as necessary when sending and
    	// receiving requests.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  7. src/regexp/syntax/parse.go

    	return after, nil
    }
    
    // repeatIsValid reports whether the repetition re is valid.
    // Valid means that the combination of the top-level repetition
    // and any inner repetitions does not exceed n copies of the
    // innermost thing.
    // This function rewalks the regexp tree and is called for every repetition,
    // so we have to worry about inducing quadratic behavior in the parser.
    // We avoid this by only calling repeatIsValid when min or max >= 2.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:59:01 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/expr.go

    		check.overflow(x, opPos(x.expr))
    
    	case *syntax.FuncLit:
    		if sig, ok := check.typ(e.Type).(*Signature); ok {
    			// Set the Scope's extent to the complete "func (...) {...}"
    			// so that Scope.Innermost works correctly.
    			sig.scope.pos = e.Pos()
    			sig.scope.end = syntax.EndPos(e)
    			if !check.conf.IgnoreFuncBodies && e.Body != nil {
    				// Anonymous functions are considered part of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
Back to top