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

◆ GetCurrentActiveScopeIndex()

int System.Reflection.Emit.ScopeTree.GetCurrentActiveScopeIndex ( )
inlinepackage

Definition at line 21 of file ScopeTree.cs.

22 {
23 if (m_iCount == 0)
24 {
25 return -1;
26 }
27 int num = m_iCount - 1;
28 int num2 = 0;
29 while (num2 > 0 || m_ScopeActions[num] == ScopeAction.Close)
30 {
31 num2 += (int)m_ScopeActions[num];
32 num--;
33 }
34 return num;
35 }

References System.Reflection.Emit.ScopeTree.m_iCount, and System.Reflection.Emit.ScopeTree.m_ScopeActions.

Referenced by System.Reflection.Emit.ScopeTree.AddUsingNamespaceToCurrentScope(), and System.Reflection.Emit.ILGenerator.UsingNamespace().