Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DepthFirstSearch()

void System.Xml.Xsl.Xslt.XslAstAnalyzer.DepthFirstSearch ( ProtoTemplate t)
inlineprivate

Definition at line 973 of file XslAstAnalyzer.cs.

974 {
975 t.Flags |= XslFlags.SideEffects | XslFlags.Stop;
976 foreach (ProtoTemplate adj in _revCall0Graph.GetAdjList(t))
977 {
978 if ((adj.Flags & XslFlags.Stop) == 0)
979 {
981 }
982 }
983 foreach (ProtoTemplate adj2 in _revCall1Graph.GetAdjList(t))
984 {
985 if ((adj2.Flags & XslFlags.Stop) == 0)
986 {
988 }
989 }
990 if (!(t is Template template) || !_revApplyTemplatesGraph.TryGetValue(template.Mode, out var value))
991 {
992 return;
993 }
994 _revApplyTemplatesGraph.Remove(template.Mode);
995 foreach (ProtoTemplate item in value)
996 {
997 if ((item.Flags & XslFlags.Stop) == 0)
998 {
1000 }
1001 }
1002 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
Dictionary< QilName, List< ProtoTemplate > > _revApplyTemplatesGraph
Graph< ProtoTemplate > _revCall0Graph
void DepthFirstSearch(ProtoTemplate t)
Graph< ProtoTemplate > _revCall1Graph

References System.Xml.Xsl.Xslt.XslAstAnalyzer._revApplyTemplatesGraph, System.Xml.Xsl.Xslt.XslAstAnalyzer._revCall0Graph, System.Xml.Xsl.Xslt.XslAstAnalyzer._revCall1Graph, System.Xml.Xsl.Xslt.XslAstAnalyzer.DepthFirstSearch(), System.Xml.Dictionary, System.item, System.Collections.Generic.Dictionary< TKey, TValue >.Remove(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Xml.Xsl.Xslt.XslAstAnalyzer.DepthFirstSearch(), and System.Xml.Xsl.Xslt.XslAstAnalyzer.PropagateSideEffectsFlag().