...

Source file src/cmd/compile/internal/types2/util_test.go

Documentation: cmd/compile/internal/types2

     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  // This file exports various functionality of util.go
     6  // so that it can be used in (package-external) tests.
     7  
     8  package types2
     9  
    10  import (
    11  	"cmd/compile/internal/syntax"
    12  )
    13  
    14  func CmpPos(p, q syntax.Pos) int { return cmpPos(p, q) }
    15  
    16  func ScopeComment(s *Scope) string         { return s.comment }
    17  func ObjectScopePos(obj Object) syntax.Pos { return obj.scopePos() }
    18  

View as plain text