suppression

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package suppression defines an analyzer that identifies calls suppressed by a comment.

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:       "suppression",
	Doc:        "This analyzer identifies ast nodes that are suppressed by comments.",
	Run:        run,
	ResultType: reflect.TypeOf(new(ResultType)).Elem(),
}

Functions

This section is empty.

Types

type ResultType

type ResultType map[ast.Node]bool

ResultType is a set of nodes that are suppressed by a comment.

func (ResultType) IsSuppressed

func (rt ResultType) IsSuppressed(n ast.Node) bool

IsSuppressed determines whether the given node is suppressed.

Jump to

Keyboard shortcuts

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