Navigation
Synopsis Delete recursively all annotations from all nodes in a value.
Function &T delAnnotationsRec(&T v)
Usage import Node;
Examples
rascal>import Node;
ok
rascal>G = setAnnotations("g"("def"), ("level" : "20", "direction" : "north"));
node: "g"("def")[
  @level="20",
  @direction="north"
]
rascal>F = setAnnotations("f"(10, G), ("color" : "red", "size" : "large"));
node: "f"(
  10,
  "g"("def")[
    @level="20",
    @direction="north"
  ])[
  @size="large",
  @color="red"
]
rascal>delAnnotationsRec(F);
node: "f"(
  10,
  "g"("def"))
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.