From 62eb0a806be509137a87d62fc204d43c70a68046 Mon Sep 17 00:00:00 2001 From: John Maxwell Date: Thu, 12 Sep 2024 14:17:33 -0700 Subject: [PATCH] Fix formatting --- src/SIL.Machine.Morphology.HermitCrab/Morpher.cs | 2 +- src/SIL.Machine.Morphology.HermitCrab/RootAllomorph.cs | 2 +- src/SIL.Machine/Annotations/Annotation.cs | 4 +++- tests/SIL.Machine.Morphology.HermitCrab.Tests/MorpherTests.cs | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/SIL.Machine.Morphology.HermitCrab/Morpher.cs b/src/SIL.Machine.Morphology.HermitCrab/Morpher.cs index 52ebeb35..587f751a 100644 --- a/src/SIL.Machine.Morphology.HermitCrab/Morpher.cs +++ b/src/SIL.Machine.Morphology.HermitCrab/Morpher.cs @@ -107,7 +107,7 @@ public IEnumerable 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. /// - public IEnumerable ParseWord(string word, out object trace, bool guessRoot) + public IEnumerable ParseWord(string word, out object trace, bool guessRoot) { // convert the word to its phonetic shape Shape shape = _lang.SurfaceStratum.CharacterDefinitionTable.Segment(word); diff --git a/src/SIL.Machine.Morphology.HermitCrab/RootAllomorph.cs b/src/SIL.Machine.Morphology.HermitCrab/RootAllomorph.cs index 1dacb805..5bb1a571 100644 --- a/src/SIL.Machine.Morphology.HermitCrab/RootAllomorph.cs +++ b/src/SIL.Machine.Morphology.HermitCrab/RootAllomorph.cs @@ -32,7 +32,7 @@ public Segments Segments /// /// Does this represent a lexical pattern (e.g. [Seg]+)? /// - public bool IsPattern { get; set; } + public bool IsPattern { get; set; } /// /// Was this allomorph guessed by a lexical pattern? diff --git a/src/SIL.Machine/Annotations/Annotation.cs b/src/SIL.Machine/Annotations/Annotation.cs index 25c14caa..8b7758f9 100644 --- a/src/SIL.Machine/Annotations/Annotation.cs +++ b/src/SIL.Machine/Annotations/Annotation.cs @@ -222,7 +222,9 @@ public bool ValueEquals(Annotation 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() diff --git a/tests/SIL.Machine.Morphology.HermitCrab.Tests/MorpherTests.cs b/tests/SIL.Machine.Morphology.HermitCrab.Tests/MorpherTests.cs index 98e3931c..7dbf8da2 100644 --- a/tests/SIL.Machine.Morphology.HermitCrab.Tests/MorpherTests.cs +++ b/tests/SIL.Machine.Morphology.HermitCrab.Tests/MorpherTests.cs @@ -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));