Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 178 for checkSeq (0.13 sec)

  1. internal/grid/muxserver.go

    				gridLogIf(m.ctx, fmt.Errorf("canceling remote connection %s not seen for %v", m.parent, last))
    				m.close()
    				return
    			}
    		}
    	}
    }
    
    // checkSeq will check if sequence number is correct and increment it by 1.
    func (m *muxServer) checkSeq(seq uint32) (ok bool) {
    	if seq != m.RecvSeq {
    		if debugPrint {
    			fmt.Printf("expected sequence %d, got %d\n", m.RecvSeq, seq)
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. internal/grid/muxclient.go

    			}
    			m.addErrorNonBlockingClose(errResp, context.Cause(m.ctx))
    			return
    		case <-pingTimer:
    			errState = !m.doPing(errResp)
    		}
    	}
    }
    
    // checkSeq will check if sequence number is correct and increment it by 1.
    func (m *muxClient) checkSeq(seq uint32) (ok bool) {
    	if seq != m.RecvSeq {
    		if debugPrint {
    			fmt.Printf("MuxID: %d client, expected sequence %d, got %d\n", m.MuxID, m.RecvSeq, seq)
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  3. src/go/types/check.go

    // For debugging only.
    type actionDesc struct {
    	pos    positioner
    	format string
    	args   []any
    }
    
    // A Checker maintains the state of the type checker.
    // It must be created with [NewChecker].
    type Checker struct {
    	// package information
    	// (initialized by NewChecker, valid for the life-time of checker)
    	conf *Config
    	ctxt *Context // context for de-duplicating instances
    	fset *token.FileSet
    	pkg  *Package
    	*Info
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/check.go

    // For debugging only.
    type actionDesc struct {
    	pos    poser
    	format string
    	args   []interface{}
    }
    
    // A Checker maintains the state of the type checker.
    // It must be created with NewChecker.
    type Checker struct {
    	// package information
    	// (initialized by NewChecker, valid for the life-time of checker)
    	conf *Config
    	ctxt *Context // context for de-duplicating instances
    	pkg  *Package
    	*Info
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/api.go

    // Package types2 declares the data types and implements
    // the algorithms for type-checking of Go packages. Use
    // Config.Check to invoke the type checker for a package.
    // Alternatively, create a new type checker with NewChecker
    // and invoke it incrementally by calling Checker.Files.
    //
    // Type-checking consists of several interdependent phases:
    //
    // Name resolution maps each identifier (syntax.Name) in the program to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  6. src/go/types/format.go

    	)
    }
    
    // dump is only needed for debugging
    func (check *Checker) dump(format string, args ...any) {
    	fmt.Println(sprintf(check.fset, check.qualifier, true, format, args...))
    }
    
    func (check *Checker) qualifier(pkg *Package) string {
    	// Qualify the package unless it's the package being type-checked.
    	if pkg != check.pkg {
    		if check.pkgPathMap == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/format.go

    	)
    }
    
    // dump is only needed for debugging
    func (check *Checker) dump(format string, args ...any) {
    	fmt.Println(sprintf(check.qualifier, true, format, args...))
    }
    
    func (check *Checker) qualifier(pkg *Package) string {
    	// Qualify the package unless it's the package being type-checked.
    	if pkg != check.pkg {
    		if check.pkgPathMap == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/decl.go

    	}
    	check.initConst(obj, &x)
    }
    
    func (check *Checker) varDecl(obj *Var, lhs []*Var, typ, init syntax.Expr) {
    	assert(obj.typ == nil)
    
    	// determine type, if any
    	if typ != nil {
    		obj.typ = check.varType(typ)
    		// We cannot spread the type to all lhs variables if there
    		// are more than one since that would mark them as checked
    		// (see Checker.objDecl) and the assignment of init exprs,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  9. src/go/types/decl.go

    	}
    	check.initConst(obj, &x)
    }
    
    func (check *Checker) varDecl(obj *Var, lhs []*Var, typ, init ast.Expr) {
    	assert(obj.typ == nil)
    
    	// determine type, if any
    	if typ != nil {
    		obj.typ = check.varType(typ)
    		// We cannot spread the type to all lhs variables if there
    		// are more than one since that would mark them as checked
    		// (see Checker.objDecl) and the assignment of init exprs,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  10. src/go/types/typexpr.go

    		check.errorf(e, NotAType, "%s is not a type", obj.Name())
    		// avoid "declared but not used" errors
    		// (don't use Checker.use - we don't want to evaluate too much)
    		if v, _ := obj.(*Var); v != nil && v.pkg == check.pkg /* see Checker.use1 */ {
    			v.used = true
    		}
    		return
    	}
    
    	// Type-check the object.
    	// Only call Checker.objDecl if the object doesn't have a type yet
    	// (in which case we must actually determine it) or the object is a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top