util_test.go raw

   1  // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
   2  // Source: ../../cmd/compile/internal/types2/util_test.go
   3  
   4  // Copyright 2023 The Go Authors. All rights reserved.
   5  // Use of this source code is governed by a BSD-style
   6  // license that can be found in the LICENSE file.
   7  
   8  // This file exports various functionality of util.go
   9  // so that it can be used in (package-external) tests.
  10  
  11  package types
  12  
  13  import (
  14  	"go/token"
  15  )
  16  
  17  func CmpPos(p, q token.Pos) int { return cmpPos(p, q) }
  18  
  19  func ScopeComment(s *Scope) string        { return s.comment }
  20  func ObjectScopePos(obj Object) token.Pos { return obj.scopePos() }
  21