typeparams

package standard library
go1.17.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package typeparams provides functions to work with type parameter data stored in the AST, while these AST changes are guarded by a build constraint.

Index

Constants

View Source
const DisallowParsing = 1 << 30

DisallowParsing is the numeric value of a parsing mode that disallows type parameters. This only matters if the typeparams experiment is active, and may be used for running tests that disallow generics.

View Source
const Enabled = false

Variables

This section is empty.

Functions

func Get

func Get(ast.Node) *ast.FieldList

func IsListExpr

func IsListExpr(n ast.Node) bool

func PackExpr

func PackExpr(list []ast.Expr) ast.Expr

func Set

func Set(node ast.Node, params *ast.FieldList)

func UnpackExpr

func UnpackExpr(expr ast.Expr) []ast.Expr

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL