tags top-level property Null safety

Map<String, Tag> tags
read / write

A map of tags that RSP compiler uses to handle the tags.

The name of tag must start with a lower-case letter (a-z), and it can have only letters (a-z and A-Z).

Implementation

late Map<String, Tag> tags = (() {
    final tags = new HashMap<String, Tag>();
    for (Tag tag in [new PageTag(), new DartTag(), new HeaderTag(),
        new IncludeTag(), new ForwardTag(), new VarTag(),
        new JsonTag(), new JsonJsTag(),
        new ForTag(), new WhileTag(), new IfTag(), new ElseTag()])
      tags[tag.name] = tag;
    return tags;
  })();