analyzer

package
v0.0.0-...-0a3dc58 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct{}

An Analyzer analyzes Go source code

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(logger *log.Logger, filename string, src []byte) ([]Problem, error)

Analyze analyzes src

func (*Analyzer) AnalyzeFiles

func (a *Analyzer) AnalyzeFiles(l *log.Logger, files map[string][]byte) ([]Problem, error)

AnalyzeFiles analyzes a set of files. The argument is a map of filename to source.

type Problem

type Problem struct {
	Function         string
	VarName          string
	Position         token.Position // position in source file
	LineText         string         // the source line
	AffectedPosition token.Position
	AffectedLineText string
	Category         string // a short name for the general category of the problem
	Validity         bool
}

Problem to keep nondet part

Jump to

Keyboard shortcuts

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