Class StandardTags.WriteVariableTag

java.lang.Object
com.oracle.truffle.api.instrumentation.Tag
com.oracle.truffle.api.instrumentation.StandardTags.WriteVariableTag
Enclosing class:
StandardTags

public static final class StandardTags.WriteVariableTag extends Tag
Marks program locations to be considered as writes of variables of the languages.

Use case descriptions:

  • Language Server Protocol: Marks every write of a variable to support the documentHighlight, hover, definition and references requests.
To determine the name of the variable, it is required that a node tagged with StandardTags.WriteVariableTag also provides a node object that has NAME property. The value of that property is either: Furthermore, nodes tagged with StandardTags.WriteVariableTag have to provide a source section.
Since:
20.0.0
  • Field Details

    • NAME

      public static final String NAME
      Property of the node object that contains name of the variable.
      Since:
      20.0.0
      See Also: