protomigrate

package module
v0.0.0-...-cd8eee9 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

package protomigrate migrates Go protobuf v1 usage to protobuf v2.

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "protomigrate",
	Doc:  doc,
	Run:  checkDeprecated,
	Requires: []*analysis.Analyzer{
		buildssa.Analyzer,
		inspect.Analyzer,
		facts.Deprecated,
		facts.Generated,
	},
}

Analyzer describes protomigrate analysis function detector.

Functions

func Generator

func Generator(pass *analysis.Pass, pos token.Pos) (facts.Generator, bool)

func IsGoVersion

func IsGoVersion(pass *analysis.Pass, minor int) bool

func Preorder

func Preorder(pass *analysis.Pass, fn func(ast.Node), typs ...ast.Node)

func SelectorName

func SelectorName(pass *analysis.Pass, expr *ast.SelectorExpr) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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