Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 446 for endPos (0.31 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go

    		children = append(children,
    			tok(n.NamePos, len(n.Name)))
    
    	case *ast.IfStmt:
    		children = append(children,
    			tok(n.If, len("if")))
    
    	case *ast.ImportSpec:
    		// TODO(adonovan): ImportSpec.{Doc,EndPos}?
    
    	case *ast.IncDecStmt:
    		children = append(children,
    			tok(n.TokPos, len(n.Tok.String())))
    
    	case *ast.IndexExpr:
    		children = append(children,
    			tok(n.Lbrack, len("[")),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/stmt.go

    			} else {
    				first = c
    			}
    		}
    	}
    }
    
    func (check *Checker) openScope(node syntax.Node, comment string) {
    	check.openScopeUntil(node, syntax.EndPos(node), comment)
    }
    
    func (check *Checker) openScopeUntil(node syntax.Node, end syntax.Pos, comment string) {
    	scope := NewScope(check.scope, node.Pos(), end, comment)
    	check.recordScope(node, scope)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  3. src/go/types/assignments.go

    	// spec: "The scope of a constant or variable identifier declared inside
    	// a function begins at the end of the ConstSpec or VarSpec (ShortVarDecl
    	// for short variable declarations) and ends at the end of the innermost
    	// containing block."
    	scopePos := endPos(rhs[len(rhs)-1])
    	for _, obj := range newVars {
    		check.declare(scope, nil, obj, scopePos) // id = nil: recordDef already called
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/assignments.go

    	// spec: "The scope of a constant or variable identifier declared inside
    	// a function begins at the end of the ConstSpec or VarSpec (ShortVarDecl
    	// for short variable declarations) and ends at the end of the innermost
    	// containing block."
    	scopePos := endPos(rhs[len(rhs)-1])
    	for _, obj := range newVars {
    		check.declare(scope, nil, obj, scopePos) // id = nil: recordDef already called
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/resolver.go

    		// The package identifier denotes the current package,
    		// but there is no corresponding package object.
    		check.recordDef(file.PkgName, nil)
    
    		fileScope := NewScope(pkg.scope, syntax.StartPos(file), syntax.EndPos(file), check.filename(fileNo))
    		fileScopes = append(fileScopes, fileScope)
    		check.recordScope(file, fileScope)
    
    		// determine file directory, necessary to resolve imports
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/expr.go

    		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
    				// init expression/func declaration which contains
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  7. src/go/printer/nodes.go

    	case *ast.ImportSpec:
    		p.setComment(s.Doc)
    		if s.Name != nil {
    			p.expr(s.Name)
    			p.print(blank)
    		}
    		p.expr(sanitizeImportPath(s.Path))
    		p.setComment(s.Comment)
    		p.setPos(s.EndPos)
    
    	case *ast.ValueSpec:
    		if n != 1 {
    			p.internalError("expected n = 1; got", n)
    		}
    		p.setComment(s.Doc)
    		p.identList(s.Names, doIndent) // always present
    		if s.Type != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/api_test.go

    	makePkg("main", mainSrc)
    
    	for e, sel := range selections {
    		_ = sel.String() // assertion: must not panic
    
    		start := indexFor(mainSrc, syntax.StartPos(e))
    		end := indexFor(mainSrc, syntax.EndPos(e))
    		segment := mainSrc[start:end] // (all SelectorExprs are in main, not lib)
    
    		direct := "."
    		if sel.Indirect() {
    			direct = "->"
    		}
    		got := [2]string{
    			sel.String(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  9. docs/ru/docs/fastapi-people.md

    {% endfor %}
    {% endif %}
    
    {% if sponsors.silver %}
    
    ### Серебрянные спонсоры
    
    {% for sponsor in sponsors.silver -%}
    <a href="{{ sponsor.url }}" target="_blank" title="{{ sponsor.title }}"><img src="{{ sponsor.img }}" style="border-radius:15px"></a>
    {% endfor %}
    {% endif %}
    
    {% if sponsors.bronze %}
    
    ### Бронзовые спонсоры
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. docs/az/docs/fastapi-people.md

    {% endfor %}
    {% endif %}
    
    {% if sponsors.silver %}
    
    ### Gümüş Sponsorlar
    
    {% for sponsor in sponsors.silver -%}
    <a href="{{ sponsor.url }}" target="_blank" title="{{ sponsor.title }}"><img src="{{ sponsor.img }}" style="border-radius:15px"></a>
    {% endfor %}
    {% endif %}
    
    {% if sponsors.bronze %}
    
    ### Bürünc Sponsorlar
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top