TypeDefinition constructor
Implementation
TypeDefinition(this.name,
{this.subtype, this.isAmbiguous = false, Node? astNode}) {
if (subtype == null) {
_isPrimitive = isPrimitiveType(this.name);
if (this.name == 'int' && isASTLiteralDouble(astNode)) {
this.name = 'double';
}
} else {
_isPrimitive = isPrimitiveType('$name<$subtype>');
}
}