Source file src/cmd/compile/internal/testimporter/support.go

     1  // Copyright 2026 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  // TODO(mark): Remove fork in cmd/compile/internal/importer.
     6  
     7  package testimporter
     8  
     9  import (
    10  	"cmd/compile/internal/base"
    11  	"internal/pkgbits"
    12  )
    13  
    14  func assert(p bool) {
    15  	base.Assert(p)
    16  }
    17  
    18  // See cmd/compile/internal/noder.derivedInfo.
    19  type derivedInfo struct {
    20  	idx    pkgbits.Index
    21  	needed bool
    22  }
    23  
    24  // See cmd/compile/internal/noder.typeInfo.
    25  type typeInfo struct {
    26  	idx     pkgbits.Index
    27  	derived bool
    28  }
    29  

View as plain text