Source file src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unreachable/doc.go

     1  // Copyright 2023 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package unreachable defines an Analyzer that checks for unreachable code.
     6  //
     7  // # Analyzer unreachable
     8  //
     9  // unreachable: check for unreachable code
    10  //
    11  // The unreachable analyzer finds statements that execution can never reach
    12  // because they are preceded by an return statement, a call to panic, an
    13  // infinite loop, or similar constructs.
    14  package unreachable
    15  

View as plain text