66 references to MatchesPattern
System.Data.SqlXml (66)
System\Xml\Xsl\IlGen\OptimizerPatterns.cs (2)
146
if (annSrc.
MatchesPattern
(pattern)) {
250
if (
MatchesPattern
((OptimizerPatternName) pattNum)) {
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (43)
186
if (OptimizerPatterns.Read(node[i]).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects))
617
if (( ( (local1).XmlType ).IsSingleton ) && ( !OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects) )) {
2001
if ( !OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.IsPositional) ) {
2024
if ( !OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects) ) {
2058
if ((( (local1).NodeType == QilNodeType.Let ) || ( ( ( (QilNode) (local1)[0] ).XmlType ).IsSingleton )) && ( !OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects) )) {
2177
if ( OptimizerPatterns.Read((QilNode) (local3)).
MatchesPattern
(OptimizerPatternName.SameDepth) ) {
2189
if (((( IsStepPattern(local2, QilNodeType.Attribute) ) || ( IsStepPattern(local2, QilNodeType.XPathNamespace) )) || ( OptimizerPatterns.Read((QilNode) (local2)).
MatchesPattern
(OptimizerPatternName.FilterAttributeKind) )) && ( (local1) == ( OptimizerPatterns.Read((QilNode) (local2)).GetArgument(OptimizerPatternArgument.StepInput) ) )) {
2199
if ( OptimizerPatterns.Read((QilNode) (local3)).
MatchesPattern
(OptimizerPatternName.SameDepth) ) {
2231
if ( !OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects) ) {
2303
if (( !OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects) ) && (!( ( (QilNode) (local1)[0] ).NodeType == QilNodeType.OptimizeBarrier ))) {
2304
if ((!(DependsOn(local2,local1))) && ( !OptimizerPatterns.Read(local2).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects) )) {
2374
if ( OptimizerPatterns.Read((QilNode) (local3)).
MatchesPattern
(OptimizerPatternName.Axis) ) {
2410
if ( OptimizerPatterns.Read((QilNode) (local3)).
MatchesPattern
(OptimizerPatternName.Axis) ) {
2533
if ((( OptimizerPatterns.Read((QilNode) (local7)).
MatchesPattern
(OptimizerPatternName.FilterElements) ) || ( OptimizerPatterns.Read((QilNode) (local7)).
MatchesPattern
(OptimizerPatternName.FilterContentKind) )) && ( IsStepPattern(local7, QilNodeType.Content) )) {
2557
if ((( OptimizerPatterns.Read((QilNode) (local5)).
MatchesPattern
(OptimizerPatternName.FilterElements) ) || ( OptimizerPatterns.Read((QilNode) (local5)).
MatchesPattern
(OptimizerPatternName.FilterContentKind) )) && ( IsStepPattern(local5, QilNodeType.Content) )) {
2575
if ( !OptimizerPatterns.Read(local2).
MatchesPattern
(OptimizerPatternName.IsPositional) ) {
2576
if (((!( OptimizerPatterns.Read((QilNode) (local1)).
MatchesPattern
(OptimizerPatternName.FilterElements) )) && (!( OptimizerPatterns.Read((QilNode) (local1)).
MatchesPattern
(OptimizerPatternName.FilterContentKind) ))) && (!( OptimizerPatterns.Read((QilNode) (local1)).
MatchesPattern
(OptimizerPatternName.FilterAttributeKind) ))) {
2596
if ( !OptimizerPatterns.Read(local4).
MatchesPattern
(OptimizerPatternName.IsPositional) ) {
2598
if (((!( OptimizerPatterns.Read((QilNode) (local3)).
MatchesPattern
(OptimizerPatternName.FilterElements) )) && (!( OptimizerPatterns.Read((QilNode) (local3)).
MatchesPattern
(OptimizerPatternName.FilterContentKind) ))) && (!( OptimizerPatterns.Read((QilNode) (local3)).
MatchesPattern
(OptimizerPatternName.FilterAttributeKind) ))) {
2618
if (( !OptimizerPatterns.Read(local2).
MatchesPattern
(OptimizerPatternName.IsPositional) ) && ( (local3).XmlType .IsSubtypeOf( XmlQueryTypeFactory.NodeNotRtfS ) )) {
2619
if (((!( OptimizerPatterns.Read((QilNode) (local1)).
MatchesPattern
(OptimizerPatternName.FilterElements) )) && (!( OptimizerPatterns.Read((QilNode) (local1)).
MatchesPattern
(OptimizerPatternName.FilterContentKind) ))) && (!( OptimizerPatterns.Read((QilNode) (local1)).
MatchesPattern
(OptimizerPatternName.FilterAttributeKind) ))) {
3440
if ( !OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects) ) {
3453
if ( !OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects) ) {
3477
if (!( !OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects) )) {
3490
if (!( !OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects) )) {
3526
if (( !( (local1).XmlType ).MaybeEmpty ) && ( !OptimizerPatterns.Read(local1).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects) )) {
4056
if (patt.
MatchesPattern
(OptimizerPatternName.FilterElements) || patt.
MatchesPattern
(OptimizerPatternName.FilterContentKind)) {
4074
if (patt.
MatchesPattern
(OptimizerPatternName.Axis) ||
4075
patt.
MatchesPattern
(OptimizerPatternName.FilterElements) ||
4076
patt.
MatchesPattern
(OptimizerPatternName.FilterContentKind)) {
4301
return OptimizerPatterns.Read(nd).
MatchesPattern
(OptimizerPatternName.IsDocOrderDistinct);
4315
return patt.
MatchesPattern
(OptimizerPatternName.Step) && ((QilNode) patt.GetArgument(OptimizerPatternArgument.StepNode)).NodeType == stepType;
4337
isUsed = optPatt.
MatchesPattern
(OptimizerPatternName.IsReferenced) || optPatt.
MatchesPattern
(OptimizerPatternName.MaybeSideEffects);
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (20)
1021
if (patt.
MatchesPattern
(OptimizerPatternName.MaxPosition)) {
1780
isFilterElements = patt.
MatchesPattern
(OptimizerPatternName.FilterElements);
1781
if (isFilterElements || patt.
MatchesPattern
(OptimizerPatternName.FilterContentKind)) {
1881
else if (patt.
MatchesPattern
(OptimizerPatternName.FilterAttributeKind)) {
1887
else if (patt.
MatchesPattern
(OptimizerPatternName.EqualityIndex)) {
1966
Debug.Assert(!patt.
MatchesPattern
(OptimizerPatternName.IsPositional));
1990
if (patt.
MatchesPattern
(OptimizerPatternName.IsPositional)) {
2014
if (patt.
MatchesPattern
(OptimizerPatternName.IsPositional)) {
2021
if (patt.
MatchesPattern
(OptimizerPatternName.MaxPosition)) {
2243
isJoinAndDod = pattDod.
MatchesPattern
(OptimizerPatternName.JoinAndDod);
2244
if (isJoinAndDod || pattDod.
MatchesPattern
(OptimizerPatternName.DodReverse)) {
2247
if (pattStep.
MatchesPattern
(OptimizerPatternName.FilterElements)) {
2252
else if (pattStep.
MatchesPattern
(OptimizerPatternName.FilterContentKind)) {
2258
Debug.Assert(pattStep.
MatchesPattern
(OptimizerPatternName.Axis), "Dod patterns should only match if step is FilterElements or FilterKindTest or Axis");
2322
else if (pattDod.
MatchesPattern
(OptimizerPatternName.DodMerge)) {
2380
if (OptimizerPatterns.Read(ndInvoke).
MatchesPattern
(OptimizerPatternName.TailCall))
2829
if (patt.
MatchesPattern
(OptimizerPatternName.SingleTextRtf)) {
4561
return patt.
MatchesPattern
(OptimizerPatternName.EqualityIndex);
4569
return !patt.
MatchesPattern
(OptimizerPatternName.JoinAndDod) && !patt.
MatchesPattern
(OptimizerPatternName.DodReverse);
System\Xml\Xsl\XmlIlGenerator.cs (1)
318
if (this.qil.IsDebug || OptimizerPatterns.Read(ndIter).
MatchesPattern
(OptimizerPatternName.MaybeSideEffects)) {