LanguageVersion class abstract
A language version.
A language version is represented by two non-negative integers, the major and minor version numbers.
If errors during parsing are handled using an onError
handler,
then an invalid language version may be represented by an
InvalidLanguageVersion object.
- Implemented types
- Implementers
Constructors
- LanguageVersion(int major, int minor)
-
factory
Properties
Methods
-
compareTo(
LanguageVersion other) → int -
Compares language versions.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of the language version.
override
Operators
-
operator ==(
Object other) → bool -
Valid language versions with the same major and minor values are
equal.
override
Static Methods
-
parse(
String source, {void onError(Object error)?}) → LanguageVersion - Parses a language version string.