public ITypeDefinitionModel CreateTypeDefinitionModel(IEntityModelContext context, params IUnresolvedTypeDefinition[] parts) { var model = new TypeDefinitionModel(context, parts[0]); for (int i = 1; i < parts.Length; i++) { model.Update(null, parts[i]); } return model; }
public static bool HasTypeScript(this TypeDefinitionModel model) { return(model.HasStereotype("TypeScript")); }
public static TypeScript GetTypeScript(this TypeDefinitionModel model) { var stereotype = model.GetStereotype("TypeScript"); return(stereotype != null ? new TypeScript(stereotype) : null); }