Source file src/cmd/vendor/golang.org/x/tools/go/analysis/passes/internal/ctrlflowinternal/ctrlflowinternal.go
1 // Copyright 2025 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 ctrlflowinternal exposes internals of ctrlflow. 6 // It cannot actually depend on symbols from ctrlflow. 7 package ctrlflowinternal 8 9 import "go/types" 10 11 // NoReturn exposes the (*ctrlflow.CFGs).NoReturn method to the buildssa analyzer. 12 // 13 // You must link [golang.org/x/tools/go/analysis/passes/ctrlflow] into your 14 // application for it to be non-nil. 15 var NoReturn = func(cfgs any, fn *types.Func) bool { 16 panic("x/tools/go/analysis/passes/ctrlflow is not linked into this application") 17 } 18