Version: dev

variable_in_use_error

Stable error · Editing

Tier: stable · Kind: error · Topic: Editing

JuliaTypeScriptPythonRustGo
not exportedVariableInUseErrornot exportednot exportedVariableInUseError

Julia

Julia does not export this error.

TypeScript

class VariableInUseError extends EsmDiagnosticError
new VariableInUseError(variableName: string, references: string[]): VariableInUseError

Error thrown when attempting to remove a variable that is still referenced

Source

Python

Python does not export this error.

Rust

Rust does not export this error.

Go

type VariableInUseError struct {
	EditError
	VariableName string
	References   []string
}

VariableInUseError reports an attempt to remove a name that is still referenced. References lists the sites, in discovery order, using the same human-readable labels the TypeScript binding emits. Mirrors TypeScript’s VariableInUseError.

Source · Go docs