Lines Matching refs:tpattern
289 … public FindTreeWizardContextVisitor( TreeWizard outer, TreePattern tpattern, IList subtrees ) in FindTreeWizardContextVisitor() argument
292 _tpattern = tpattern; in FindTreeWizardContextVisitor()
321 TreePattern tpattern = (TreePattern)parser.Pattern(); in Find()
323 if ( tpattern == null || in Find()
324 tpattern.IsNil || in Find()
325 tpattern.GetType() == typeof( WildcardTreePattern ) ) in Find()
329 int rootTokenType = tpattern.Type; in Find()
330 Visit( t, rootTokenType, new FindTreeWizardContextVisitor( this, tpattern, subtrees ) ); in Find()
387 …eeWizard outer, IContextVisitor visitor, IDictionary<string, object> labels, TreePattern tpattern ) in VisitTreeWizardContextVisitor() argument
392 _tpattern = tpattern; in VisitTreeWizardContextVisitor()
419 TreePattern tpattern = (TreePattern)parser.Pattern(); in Visit()
421 if ( tpattern == null || in Visit()
422 tpattern.IsNil || in Visit()
423 tpattern.GetType() == typeof( WildcardTreePattern ) ) in Visit()
428 int rootTokenType = tpattern.Type; in Visit()
429 … Visit( t, rootTokenType, new VisitTreeWizardContextVisitor( this, visitor, labels, tpattern ) ); in Visit()
452 TreePattern tpattern = (TreePattern)parser.Pattern(); in Parse()
457 bool matched = ParseCore( t, tpattern, labels ); in Parse()
473 …protected virtual bool ParseCore( object t1, TreePattern tpattern, IDictionary<string, object> lab… in ParseCore() argument
476 if ( t1 == null || tpattern == null ) in ParseCore()
481 if ( tpattern.GetType() != typeof( WildcardTreePattern ) ) in ParseCore()
483 if ( adaptor.GetType( t1 ) != tpattern.Type ) in ParseCore()
488 if ( tpattern.hasTextArg && !adaptor.GetText( t1 ).Equals( tpattern.Text ) ) in ParseCore()
493 if ( tpattern.label != null && labels != null ) in ParseCore()
496 labels[tpattern.label] = t1; in ParseCore()
500 int n2 = tpattern.ChildCount; in ParseCore()
508 TreePattern child2 = (TreePattern)tpattern.GetChild( i ); in ParseCore()