Add a custom Pygments lexer plug-in for Wren syntax highlighting, update contributing docs with setup instructions for the lexer, and switch every `:::dart` annotation across all doc/site markdown files to `:::wren` so code examples render with the correct language grammar.
511 B
511 B
^title Class Class ^category core
Methods
name
The name of the class.
supertype
The superclass of this class.
:::wren
class Crustacean {}
class Crab is Crustacean {}
System.print(Crab.supertype) // "Crustacean".
A class with no explicit superclass implicitly inherits Object:
:::wren
System.print(Crustacean.supertype) // "Object".
Object forms the root of the class hierarchy and has no supertype:
:::wren
System.print(Object.supertype) // "null".