Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for doDecl (0.13 sec)

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

    		// init() functions cannot be referred to and there may
    		// be more than one - don't put them in the pkgScope
    		if ident.Name != "init" {
    			p.declare(decl, p.pkgScope, ast.Fun, ident)
    		}
    	}
    
    	return decl
    }
    
    func (p *parser) parseDecl() ast.Decl {
    	if p.trace {
    		defer un(trace(p, "Declaration"))
    	}
    
    	var f parseSpecFunction
    	switch p.tok {
    	case token.CONST:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTransportImpl.java

            }
    
            /*
             * Unless key returned is null or invalid Transport.loop() always
             * calls doRecv() after and no one else but the transport thread
             * should call doRecv(). Therefore it is ok to expect that the data
             * in sbuf will be preserved for copying into BUF in doRecv().
             */
    
            return (long) Encdec.dec_uint16le(this.sbuf, 34) & 0xFFFF;
        }
    
    
        @Override
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Wed Jan 18 23:47:00 UTC 2023
    - 67K bytes
    - Viewed (0)
  3. src/go/printer/nodes.go

    		p.print(blank)
    	}
    	p.expr(d.Name)
    	p.signature(d.Type)
    	p.funcBody(p.distanceFrom(d.Pos(), startCol), vtab, d.Body)
    }
    
    func (p *printer) decl(decl ast.Decl) {
    	switch d := decl.(type) {
    	case *ast.BadDecl:
    		p.setPos(d.Pos())
    		p.print("BadDecl")
    	case *ast.GenDecl:
    		p.genDecl(d)
    	case *ast.FuncDecl:
    		p.funcDecl(d)
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/parser.go

    			}
    		}
    	}
    
    	pos := p.pos()
    	p.want(close)
    	return pos
    }
    
    // appendGroup(f) = f | "(" { f ";" } ")" . // ";" is optional before ")"
    func (p *parser) appendGroup(list []Decl, f func(*Group) Decl) []Decl {
    	if p.tok == _Lparen {
    		g := new(Group)
    		p.clearPragma()
    		p.next() // must consume "(" after calling clearPragma!
    		p.list("grouped declaration", _Semi, _Rparen, func() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  5. src/net/http/httputil/reverseproxy_test.go

    	}
    
    	var proxyLog bytes.Buffer
    	rproxy := NewSingleHostReverseProxy(rpURL)
    	rproxy.ErrorLog = log.New(&proxyLog, "", log.Lshortfile)
    	donec := make(chan bool, 1)
    	frontendProxy := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		defer func() { donec <- true }()
    		rproxy.ServeHTTP(w, r)
    	}))
    	defer frontendProxy.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  6. src/go/parser/parser.go

    	default:
    		p.expectSemi()
    	}
    
    	decl := &ast.FuncDecl{
    		Doc:  doc,
    		Recv: recv,
    		Name: ident,
    		Type: &ast.FuncType{
    			Func:       pos,
    			TypeParams: tparams,
    			Params:     params,
    			Results:    results,
    		},
    		Body: body,
    	}
    	return decl
    }
    
    func (p *parser) parseDecl(sync map[token.Token]bool) ast.Decl {
    	if p.trace {
    		defer un(trace(p, "Declaration"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  7. src/net/http/client_test.go

    func TestClientTimeout_Headers(t *testing.T) { run(t, testClientTimeout_Headers) }
    func testClientTimeout_Headers(t *testing.T, mode testMode) {
    	donec := make(chan bool, 1)
    	cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		<-donec
    	}), optQuietLog)
    	// Note that we use a channel send here and not a close.
    	// The race detector doesn't know that we're waiting for a timeout
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  8. src/go/types/expr.go

    				// Anonymous functions are considered part of the
    				// init expression/func declaration which contains
    				// them: use existing package-level declaration info.
    				decl := check.decl // capture for use in closure below
    				iota := check.iota // capture for use in closure below (go.dev/issue/22345)
    				// Don't type-check right away because the function may
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    	}
    }
    
    // templateParamDecl parses:
    //
    //	<template-param-decl> ::= Ty                          # type parameter
    //	                      ::= Tn <type>                   # non-type parameter
    //	                      ::= Tt <template-param-decl>* E # template parameter
    //	                      ::= Tp <template-param-decl>    # parameter pack
    //
    // Returns the new AST to include in the AST we are building and the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/expr.go

    				// Anonymous functions are considered part of the
    				// init expression/func declaration which contains
    				// them: use existing package-level declaration info.
    				decl := check.decl // capture for use in closure below
    				iota := check.iota // capture for use in closure below (go.dev/issue/22345)
    				// Don't type-check right away because the function may
    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