Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "discriminated", Doc: "check exhaustive pattern matching for discriminated unions", Run: run, Requires: []*analysis.Analyzer{inspect.Analyzer}, FactTypes: []analysis.Fact{&DiscriminatedUnionFact{}}, }
Functions ¶
This section is empty.
Types ¶
type DiscriminatedUnionFact ¶
type DiscriminatedUnionFact struct {
Types []string
}
func (*DiscriminatedUnionFact) AFact ¶
func (f *DiscriminatedUnionFact) AFact()
func (*DiscriminatedUnionFact) String ¶
func (f *DiscriminatedUnionFact) String() string
type NameWithInterface ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
discriminatedunion
Exhaustiveness checks for discriminated unions.
|
Exhaustiveness checks for discriminated unions. |
Click to show internal directories.
Click to hide internal directories.