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