variables

package
v0.0.0-...-0137c81 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package variables allows collecting the information about how variables are used.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindVariables

func FindVariables(node ast.Node, scope Environment) *common.VariableInfo

FindVariables builds common.VariableInfo based on the AST from a file.

Types

type Environment

type Environment map[ast.Identifier]*common.Variable

Environment is mapping from variable names to information about variables. It represents variables in a specific scope.

Jump to

Keyboard shortcuts

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