Black Lives Matter. Support the Equal Justice Initiative.

Source file src/go/internal/typeparams/common.go

Documentation: go/internal/typeparams

     1  // Copyright 2021 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  // Package typeparams provides functions to work with type parameter data
     6  // stored in the AST, while these AST changes are guarded by a build
     7  // constraint.
     8  package typeparams
     9  
    10  // DisallowParsing is the numeric value of a parsing mode that disallows type
    11  // parameters. This only matters if the typeparams experiment is active, and
    12  // may be used for running tests that disallow generics.
    13  const DisallowParsing = 1 << 30
    14  

View as plain text