Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmaxwell3 committed Sep 12, 2024
1 parent 04d94fe commit 62eb0a8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/SIL.Machine.Morphology.HermitCrab/Morpher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public IEnumerable<Word> ParseWord(string word, out object trace)
/// Parse the specified surface form, possibly tracing the parse.
/// If there are no analyses and guessRoot is true, then guess the root.
/// </summary>
public IEnumerable<Word> ParseWord(string word, out object trace, bool guessRoot)
public IEnumerable<Word> ParseWord(string word, out object trace, bool guessRoot)
{
// convert the word to its phonetic shape
Shape shape = _lang.SurfaceStratum.CharacterDefinitionTable.Segment(word);
Expand Down
2 changes: 1 addition & 1 deletion src/SIL.Machine.Morphology.HermitCrab/RootAllomorph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public Segments Segments
/// <summary>
/// Does this represent a lexical pattern (e.g. [Seg]+)?
/// </summary>
public bool IsPattern { get; set; }
public bool IsPattern { get; set; }

/// <summary>
/// Was this allomorph guessed by a lexical pattern?
Expand Down
4 changes: 3 additions & 1 deletion src/SIL.Machine/Annotations/Annotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ public bool ValueEquals(Annotation<TOffset> other)
if (!IsLeaf && !_children.ValueEquals(other._children))
return false;

return _fs.ValueEquals(other._fs) && _optional == other._optional && _iterative == other._iterative && Range == other.Range;
return _fs.ValueEquals(other._fs)
&& _optional == other._optional
&& _iterative == other._iterative && Range == other.Range;
}

public int GetFrozenHashCode()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void AnalyzeWord_CanGuess_ReturnsCorrectAnalysis()
Morphophonemic.MorphologicalRules.Add(edSuffix);

// Make a lexical pattern equivalent to Any+.
ShapeNode node = new ShapeNode(new FeatureStruct());
ShapeNode node = new ShapeNode(new FeatureStruct());
node.Annotation.Optional = true;
node.Annotation.Iterative = true;
var shape = new Shape(begin => new ShapeNode(begin ? HCFeatureSystem.LeftSideAnchor : HCFeatureSystem.RightSideAnchor));
Expand Down

0 comments on commit 62eb0a8

Please sign in to comment.