66 references to MatchesPattern
System.Private.Xml (66)
System\Xml\Xsl\IlGen\OptimizerPatterns.cs (2)
162
if (annSrc.
MatchesPattern
(pattern))
277
if (
MatchesPattern
((OptimizerPatternName)pattNum))
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (43)
204
if (OptimizerPatterns.Read(node[i]).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects))
764
if ((((local1).XmlType)!.IsSingleton) && (!OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects)))
2637
if (!OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.IsPositional))
2668
if (!OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects))
2715
if ((((local1).NodeType == QilNodeType.Let) || ((((QilNode)(local1)[0]).XmlType!).IsSingleton)) && (!OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects)))
2879
if (OptimizerPatterns.Read((QilNode)(local3)).
MatchesPattern
(OptimizerPatternName.SameDepth))
2897
if ((((IsStepPattern(local2, QilNodeType.Attribute)) || (IsStepPattern(local2, QilNodeType.XPathNamespace))) || (OptimizerPatterns.Read((QilNode)(local2)).
MatchesPattern
(OptimizerPatternName.FilterAttributeKind))) && ((local1) == (OptimizerPatterns.Read((QilNode)(local2)).GetArgument(OptimizerPatternArgument.StepInput))))
2912
if (OptimizerPatterns.Read((QilNode)(local3)).
MatchesPattern
(OptimizerPatternName.SameDepth))
2956
if (!OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects))
3053
if ((!OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects)) && (!(((QilNode)(local1)[0]).NodeType == QilNodeType.OptimizeBarrier)))
3055
if ((!(DependsOn(local2, local1))) && (!OptimizerPatterns.Read(local2).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects)))
3154
if (OptimizerPatterns.Read((QilNode)(local3)).
MatchesPattern
(OptimizerPatternName.Axis))
3204
if (OptimizerPatterns.Read((QilNode)(local3)).
MatchesPattern
(OptimizerPatternName.Axis))
3369
if (((OptimizerPatterns.Read((QilNode)(local7)).
MatchesPattern
(OptimizerPatternName.FilterElements)) || (OptimizerPatterns.Read((QilNode)(local7)).
MatchesPattern
(OptimizerPatternName.FilterContentKind))) && (IsStepPattern(local7, QilNodeType.Content)))
3400
if (((OptimizerPatterns.Read((QilNode)(local5)).
MatchesPattern
(OptimizerPatternName.FilterElements)) || (OptimizerPatterns.Read((QilNode)(local5)).
MatchesPattern
(OptimizerPatternName.FilterContentKind))) && (IsStepPattern(local5, QilNodeType.Content)))
3423
if (!OptimizerPatterns.Read(local2).
MatchesPattern
(OptimizerPatternName.IsPositional))
3425
if (((!(OptimizerPatterns.Read((QilNode)(local1)).
MatchesPattern
(OptimizerPatternName.FilterElements))) && (!(OptimizerPatterns.Read((QilNode)(local1)).
MatchesPattern
(OptimizerPatternName.FilterContentKind)))) && (!(OptimizerPatterns.Read((QilNode)(local1)).
MatchesPattern
(OptimizerPatternName.FilterAttributeKind))))
3451
if (!OptimizerPatterns.Read(local4).
MatchesPattern
(OptimizerPatternName.IsPositional))
3455
if (((!(OptimizerPatterns.Read((QilNode)(local3)).
MatchesPattern
(OptimizerPatternName.FilterElements))) && (!(OptimizerPatterns.Read((QilNode)(local3)).
MatchesPattern
(OptimizerPatternName.FilterContentKind)))) && (!(OptimizerPatterns.Read((QilNode)(local3)).
MatchesPattern
(OptimizerPatternName.FilterAttributeKind))))
3481
if ((!OptimizerPatterns.Read(local2).
MatchesPattern
(OptimizerPatternName.IsPositional)) && ((local3).XmlType!.IsSubtypeOf(XmlQueryTypeFactory.NodeNotRtfS)))
3483
if (((!(OptimizerPatterns.Read((QilNode)(local1)).
MatchesPattern
(OptimizerPatternName.FilterElements))) && (!(OptimizerPatterns.Read((QilNode)(local1)).
MatchesPattern
(OptimizerPatternName.FilterContentKind)))) && (!(OptimizerPatterns.Read((QilNode)(local1)).
MatchesPattern
(OptimizerPatternName.FilterAttributeKind))))
4575
if (!OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects))
4593
if (!OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects))
4626
if (!(!OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects)))
4644
if (!(!OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects)))
4693
if ((!((local1).XmlType)!.MaybeEmpty) && (!OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects)))
5323
if (patt.
MatchesPattern
(OptimizerPatternName.FilterElements) || patt.
MatchesPattern
(OptimizerPatternName.FilterContentKind))
5344
if (patt.
MatchesPattern
(OptimizerPatternName.Axis) ||
5345
patt.
MatchesPattern
(OptimizerPatternName.FilterElements) ||
5346
patt.
MatchesPattern
(OptimizerPatternName.FilterContentKind))
5601
return OptimizerPatterns.Read(nd).
MatchesPattern
(OptimizerPatternName.IsDocOrderDistinct);
5617
return patt.
MatchesPattern
(OptimizerPatternName.Step) && ((QilNode)patt.GetArgument(OptimizerPatternArgument.StepNode)).NodeType == stepType;
5643
isUsed = optPatt.
MatchesPattern
(OptimizerPatternName.IsReferenced) || optPatt.
MatchesPattern
(OptimizerPatternName.MaybeSideEffects);
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (20)
1097
if (patt.
MatchesPattern
(OptimizerPatternName.MaxPosition))
1925
isFilterElements = patt.
MatchesPattern
(OptimizerPatternName.FilterElements);
1926
if (isFilterElements || patt.
MatchesPattern
(OptimizerPatternName.FilterContentKind))
2034
else if (patt.
MatchesPattern
(OptimizerPatternName.FilterAttributeKind))
2041
else if (patt.
MatchesPattern
(OptimizerPatternName.EqualityIndex))
2124
Debug.Assert(!patt.
MatchesPattern
(OptimizerPatternName.IsPositional));
2149
if (patt.
MatchesPattern
(OptimizerPatternName.IsPositional))
2175
if (patt.
MatchesPattern
(OptimizerPatternName.IsPositional))
2183
if (patt.
MatchesPattern
(OptimizerPatternName.MaxPosition))
2418
isJoinAndDod = pattDod.
MatchesPattern
(OptimizerPatternName.JoinAndDod);
2419
if (isJoinAndDod || pattDod.
MatchesPattern
(OptimizerPatternName.DodReverse))
2423
if (pattStep.
MatchesPattern
(OptimizerPatternName.FilterElements))
2429
else if (pattStep.
MatchesPattern
(OptimizerPatternName.FilterContentKind))
2437
Debug.Assert(pattStep.
MatchesPattern
(OptimizerPatternName.Axis), "Dod patterns should only match if step is FilterElements or FilterKindTest or Axis");
2505
else if (pattDod.
MatchesPattern
(OptimizerPatternName.DodMerge))
2566
if (OptimizerPatterns.Read(ndInvoke).
MatchesPattern
(OptimizerPatternName.TailCall))
3043
if (patt.
MatchesPattern
(OptimizerPatternName.SingleTextRtf))
4939
return patt.
MatchesPattern
(OptimizerPatternName.EqualityIndex);
4947
return !patt.
MatchesPattern
(OptimizerPatternName.JoinAndDod) && !patt.
MatchesPattern
(OptimizerPatternName.DodReverse);
System\Xml\Xsl\XmlIlGenerator.cs (1)
337
if (_qil!.IsDebug || OptimizerPatterns.Read(ndIter).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects))