Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkCopyLocksGenDecl (0.57 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    			pass.ReportRangef(x, "assignment copies lock value to %v: %v", analysisutil.Format(pass.Fset, as.Lhs[i]), path)
    		}
    	}
    }
    
    // checkCopyLocksGenDecl checks whether lock is copied
    // in variable declaration.
    func checkCopyLocksGenDecl(pass *analysis.Pass, gd *ast.GenDecl) {
    	if gd.Tok != token.VAR {
    		return
    	}
    	for _, spec := range gd.Specs {
    		valueSpec := spec.(*ast.ValueSpec)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top