valueenumvariant

package
v0.361.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Extractor = common.NewExtractor("valueenumvariant", (*Fact)(nil), Extract)

Extractor extracts possible value enum variants.

All named constants are marked as possible enum variants and subsequent extractors determine if they are part of an enum.

Functions

func Extract

func Extract(pass *analysis.Pass) (interface{}, error)

Types

type Fact

type Fact = common.DefaultFact[Tag]

type Tag

type Tag struct{} // Tag uniquely identifies the fact type for this extractor.

Jump to

Keyboard shortcuts

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