Skip to content

Commit

Permalink
Add CompositeCell.GetEmptyCell ✨ #248
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Nov 14, 2023
1 parent 204162f commit b25be23
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ISA/ISA/ArcTypes/CompositeCell.fs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ type CompositeCell =
| CompositeCell.Unitized (v,_) -> CompositeCell.createUnitized (v,oa)
| CompositeCell.FreeText _ -> CompositeCell.createFreeText oa.NameText

/// <summary>
/// This returns the default empty cell from an existing CompositeCell.
/// </summary>
member this.GetEmptyCell() =
match this with
| CompositeCell.Term _ -> CompositeCell.emptyTerm
| CompositeCell.Unitized _ -> CompositeCell.emptyUnitized
| CompositeCell.FreeText _ -> CompositeCell.emptyFreeText

/// <summary>
/// This function returns an array of all values as string
///
Expand Down

0 comments on commit b25be23

Please sign in to comment.