18 references to CountIsOne
System.Speech (18)
Internal\SrgsCompiler\Graph.cs (8)
296
if (state.InArcs.
CountIsOne
&& state.InArcs.First.IsEpsilonTransition && (state != state.Rule._firstState))
325
else if ((state.OutArcs.
CountIsOne
) && state.OutArcs.First.IsEpsilonTransition && (state != state.Rule._firstState))
469
bool skipTransition = arc.Start == null || !arc.Start.OutArcs.
CountIsOne
;
611
bool skipTransition = arc.End == null || !arc.End.InArcs.
CountIsOne
;
745
if ((startState.InArcs.
CountIsOne
) && (startState.OutArcs.
CountIsOne
) && CanTagsBeMoved(previousArc, arc))
779
if ((endState.InArcs.
CountIsOne
) && (endState.OutArcs.
CountIsOne
) && CanTagsBeMoved(arc, pNextArc))
Internal\SrgsCompiler\Item.cs (1)
92
System.Diagnostics.Debug.Assert(newEndState.OutArcs.
CountIsOne
&& Arc.CompareContent(_endArc, newEndState.OutArcs.First) == 0);
Internal\SrgsCompiler\ParseElementCollection.cs (8)
63
if (position == Position.Before && arc.End != null && arc.End.InArcs.
CountIsOne
&& Graph.MoveSemanticTagRight(arc))
67
if (position == Position.After && arc.Start != null && arc.Start.OutArcs.
CountIsOne
&& Graph.MoveSemanticTagLeft(arc))
102
for (State? startState = startArc.End; startArc.IsEpsilonTransition && startState != null && Graph.MoveSemanticTagRight(startArc) && startState.InArcs.
CountIsOne
&& startState.OutArcs.
CountIsOne
; startState = startArc.End)
110
System.Diagnostics.Debug.Assert(startState.OutArcs.
CountIsOne
);
135
for (State? endState = endArc.Start; endArc.IsEpsilonTransition && endState != null && Graph.MoveSemanticTagLeft(endArc) && endState.InArcs.
CountIsOne
&& endState.OutArcs.
CountIsOne
; endState = endArc.Start)
143
System.Diagnostics.Debug.Assert(endState.InArcs.
CountIsOne
);
Internal\SrgsCompiler\Rule.cs (1)
249
if (endArc.IsEpsilonTransition && endState.OutArcs.
CountIsOne
&& Graph.MoveSemanticTagLeft(endArc))