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

◆ TestAndBranch()

void System.Xml.Xsl.IlGen.GenerateHelper.TestAndBranch ( int i4,
Label lblBranch,
OpCode opcodeBranch )
inline

Definition at line 164 of file GenerateHelper.cs.

165 {
166 if (i4 != 0)
167 {
168 goto IL_0073;
169 }
170 if (opcodeBranch.Value == OpCodes.Beq.Value)
171 {
173 }
174 else if (opcodeBranch.Value == OpCodes.Beq_S.Value)
175 {
177 }
178 else if (opcodeBranch.Value == OpCodes.Bne_Un.Value)
179 {
181 }
182 else
183 {
184 if (opcodeBranch.Value != OpCodes.Bne_Un_S.Value)
185 {
186 goto IL_0073;
187 }
189 }
190 goto IL_007a;
191 IL_007a:
192 Emit(opcodeBranch, lblBranch);
193 return;
194 IL_0073:
196 goto IL_007a;
197 }
static readonly OpCode Brfalse
Definition OpCodes.cs:117
static readonly OpCode Brtrue
Definition OpCodes.cs:119
static readonly OpCode Bne_Un_S
Definition OpCodes.cs:105
static readonly OpCode Beq_S
Definition OpCodes.cs:95
static readonly OpCode Beq
Definition OpCodes.cs:121
static readonly OpCode Bne_Un
Definition OpCodes.cs:131
static readonly OpCode Brtrue_S
Definition OpCodes.cs:93
static readonly OpCode Brfalse_S
Definition OpCodes.cs:91

References System.Reflection.Emit.OpCodes.Beq, System.Reflection.Emit.OpCodes.Beq_S, System.Reflection.Emit.OpCodes.Bne_Un, System.Reflection.Emit.OpCodes.Bne_Un_S, System.Reflection.Emit.OpCodes.Brfalse, System.Reflection.Emit.OpCodes.Brfalse_S, System.Reflection.Emit.OpCodes.Brtrue, System.Reflection.Emit.OpCodes.Brtrue_S, System.Xml.Dictionary, and System.Xml.Xsl.IlGen.GenerateHelper.LoadInteger().

Referenced by System.Xml.Xsl.IlGen.XmlILVisitor.VisitIsEmpty().