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

     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  // 'Hidden' parser modes to control the parsing of type-parameter related
    11  // features.
    12  const (
    13  	DisallowTypeSets = 1 << 29 // Disallow eliding 'interface' in constraint type sets.
    14  	DisallowParsing  = 1 << 30 // Disallow type parameters entirely.
    15  )
    16  

View as plain text