assignment

package
v0.0.0-...-5c65953 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDefinition

func IsDefinition(a Assignment) bool

Types

type Assignment

type Assignment struct {
	Ident        *ast.Ident
	Token        token.Token
	VarExpr      ast.Expr
	NewValueExpr ast.Expr
}

Assignment describes an instance of a value being assigned to a variable.

func AssignmentsFromRangeStmtInitializer

func AssignmentsFromRangeStmtInitializer(stmt *ast.RangeStmt) []Assignment

func AssignmentsFromStmt

func AssignmentsFromStmt(stmt *ast.AssignStmt) []Assignment

Jump to

Keyboard shortcuts

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