Class StandardTags.ReadVariableTag
java.lang.Object
com.oracle.truffle.api.instrumentation.Tag
com.oracle.truffle.api.instrumentation.StandardTags.ReadVariableTag
- Enclosing class:
StandardTags
Marks program locations to be considered as reads of variables of the languages.
Use case descriptions:
- Language Server Protocol: Marks every read of a variable to support the documentHighlight, hover, definition and references requests.
StandardTags.ReadVariableTag also provides a node
object that has NAME property. The value of that property is either:
- a String name of the variable (in that case the node's
source sectionis considered as the variable's source section), - an object that provides name and
SourceSectionviaInteropLibrary.asString(Object)andInteropLibrary.getSourceLocation(Object)respectively, - an array of objects when multiple variables are being read, where each array element
provides name and
SourceSectionas specified above.
StandardTags.ReadVariableTag have to provide a
source section.- Since:
- 20.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.instrumentation.Tag
Tag.Identifier -
Field Summary
Fields -
Method Summary
Methods inherited from class com.oracle.truffle.api.instrumentation.Tag
findProvidedTag, getIdentifier
-
Field Details
-
NAME
Property of the node object that contains name of the variable.- Since:
- 20.0.0
- See Also:
-