operator <= method
Whether this language version is less than or equal to other.
Neither version being compared must be an InvalidLanguageVersion.
For details on how valid language versions are compared, check out LanguageVersion.compareTo.
Implementation
bool operator <=(LanguageVersion other) {
// Throw an error if comparing an invalid language version.
if (major < 0) _throwThisInvalid();
if (other.major < 0) _throwOtherInvalid();
return compareTo(other) <= 0;
}