...

Source file src/pkg/cmd/compile/internal/gc/types_acc.go

     1	// Copyright 2017 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 implements convertions between *types.Node and *Node.
     6	// TODO(gri) try to eliminate these soon
     7	
     8	package gc
     9	
    10	import (
    11		"cmd/compile/internal/types"
    12		"unsafe"
    13	)
    14	
    15	func asNode(n *types.Node) *Node      { return (*Node)(unsafe.Pointer(n)) }
    16	func asTypesNode(n *Node) *types.Node { return (*types.Node)(unsafe.Pointer(n)) }
    17	

View as plain text