Module org.kink_lang.kink
Interface UsedDefinedVars
- All Known Implementing Classes:
FastFunItree
public interface UsedDefinedVars
Provides access to used/defined local vars in a fun.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the set of local vars defined in the fun.Returns the set of free local vars of the fun.getContent
(LocalVar lvar) Returns the content for the local var.default boolean
Whether the lvar is used in the fun.Returns the set of local vars used in the fun.
-
Method Details
-
usedLvars
Returns the set of local vars used in the fun.- Returns:
- the set of local vars used in the fun.
-
definedLvars
Returns the set of local vars defined in the fun.- Returns:
- the set of local vars defined in the fun.
-
freeLvars
Returns the set of free local vars of the fun.- Returns:
- the set of free local vars of the fun.
-
isUsed
Whether the lvar is used in the fun.- Parameters:
lvar
- the local var to test.- Returns:
- whether the lvar is used in the fun.
-
getContent
Returns the content for the local var.- Parameters:
lvar
- the local var.- Returns:
- the content for the local var.
-