![]() |
| ||||
Navigation |
Synopsis Retrieve the value of an Annotation.
Syntax
Expr @ Name
Types
Description Retrieves the value of annotation
Name of the value of Exp (may be undefined!).
Also see Replacement for replacing the value of an annotation.
Examples
rascal>anno str node @ color; ok rascal>anno str node @ size; ok rascal>F = "fn"(123, "abc"); node: "fn"(123,"abc") rascal>F = F[@color="red"]; node: "fn"(123,"abc")[ @color="red" ] rascal>F = F[@size="10"]; node: "fn"(123,"abc")[ @color="red", @size="10" ] rascal>F@color; str: "red" ![]() |