sessions

package
v0.0.0-...-ac32242 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	Sources []*sources.Source

	Analyzers []analyzers.Analyzer

	Issues []*analyzers.Issue
	// contains filtered or unexported fields
}

Session represents a session of running the tool, referencing source units, analyzers, and issues found.

func NewSession

func NewSession() *Session

NewSession returns a new instance of Session.

func (*Session) AddAnalyzer

func (s *Session) AddAnalyzer(analyzer analyzers.Analyzer)

AddAnalyzer adds a new analyzer to be run during the session.

func (*Session) Analyze

func (s *Session) Analyze()

Analyze runs all analyzers on all sources.

func (*Session) GenerateReport

func (s *Session) GenerateReport(generator reports.Generator)

GenerateReport generates a report with a given generator.

func (*Session) ParseFile

func (s *Session) ParseFile(path string) *sources.Source

Parse parses a Solidity source string.

func (*Session) ParsePath

func (s *Session) ParsePath(paths []string)

ParsePath walks a directory containing Solidity source files and parses each one.

Jump to

Keyboard shortcuts

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