Source file src/go/types/util_test.go

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

View as plain text