83 references to Code
illink (50)
Linker.Dataflow\CompilerGeneratedState.cs (2)
214
if (instruction.OpCode.
Code
is not (Code.Stsfld or Code.Ldsfld))
463
switch (instr.OpCode.
Code
)
Linker.Dataflow\FlowAnnotations.cs (1)
558
switch (instruction.OpCode.
Code
)
Linker.Dataflow\MethodBodyScanner.cs (10)
334
switch (operation.OpCode.
Code
)
383
int value = operation.OpCode.
Code
- Code.Ldc_I4_0;
782
Code code = operation.OpCode.
Code
;
827
bool isByRef = operation.OpCode.
Code
== Code.Ldloca || operation.OpCode.
Code
== Code.Ldloca_S;
986
Code code = operation.OpCode.
Code
;
1041
if (operation.OpCode.
Code
== Code.Stfld)
1071
Code code = operation.OpCode.
Code
;
1193
bool isNewObj = operation.OpCode.
Code
== Code.Newobj;
1288
bool isByRef = operation.OpCode.
Code
== Code.Ldelema;
Linker.Dataflow\ReflectionMethodBodyScanner.cs (1)
234
bool isNewObj = operation.OpCode.
Code
== Code.Newobj;
Linker.Dataflow\ScannerExtensions.cs (1)
16
|| (opcode.FlowControl == FlowControl.Return && opcode.
Code
!= Code.Ret);
Linker.Steps\MarkStep.cs (6)
2828
return body.Instructions[0].OpCode.
Code
!= Code.Ret;
3921
=> instruction.OpCode.
Code
switch
3938
var ret = instruction.OpCode.
Code
switch
3963
(DependencyKind dependencyKind, bool markForReflectionAccess) = instruction.OpCode.
Code
switch
3994
Debug.Assert(instruction.OpCode.
Code
== Code.Ldtoken);
4021
switch (instruction.OpCode.
Code
)
Linker.Steps\UnreachableBlocksOptimizer.cs (24)
160
switch (instr.OpCode.
Code
)
194
switch (opCode.
Code
)
388
switch (instr.OpCode.
Code
)
416
switch (instruction.OpCode.
Code
)
503
switch (instr.OpCode.
Code
)
603
if (instructions[index - 1].OpCode.
Code
== Code.Ldarg_0)
686
switch (instr.OpCode.
Code
)
910
switch (instr.OpCode.
Code
)
979
=> opCode.
Code
is Code.Brfalse or Code.Brfalse_S or Code.Brtrue or Code.Brtrue_S;
1078
if (operand is null && (opcode.
Code
== Code.Brfalse || opcode.
Code
== Code.Brfalse_S))
1133
switch (instr.OpCode.
Code
)
1347
switch (first.OpCode.
Code
)
1350
return second.OpCode.
Code
== Code.Ldloc_0;
1352
return second.OpCode.
Code
== Code.Ldloc_1;
1354
return second.OpCode.
Code
== Code.Ldloc_2;
1356
return second.OpCode.
Code
== Code.Ldloc_3;
1359
if (second.OpCode.
Code
== Code.Ldloc_S || second.OpCode.
Code
== Code.Ldloc)
1423
switch (instr.OpCode.
Code
)
1617
switch (instruction.OpCode.
Code
)
1706
switch (instr.OpCode.
Code
)
2040
switch (instr.OpCode.
Code
)
2088
switch (instr.OpCode.
Code
)
Linker\MethodBodyScanner.cs (4)
24
if (ins.OpCode.
Code
== Code.Nop)
29
if (meaningfulCount == 1 && ins.OpCode.
Code
== Code.Ret)
32
if (meaningfulCount == 2 && ins.OpCode.
Code
== Code.Ret && previousMeaningful != null)
45
switch (previousMeaningful.OpCode.
Code
)
Linker\ParameterHelpers.cs (1)
18
Code code = operation.OpCode.
Code
;
Microsoft.Maui.Controls.Build.Tasks (6)
MethodBodyExtensions.cs (6)
34
if (instruction.OpCode.
Code
!= Code.Ldc_I8)
50
if (instruction.OpCode.
Code
!= Code.Stloc)
57
if (next.OpCode.
Code
!= Code.Ldloc || num != ((VariableDefinition)next.Operand).Index)
70
if (instruction.OpCode.
Code
!= Code.Ldloc)
83
var instruction = (from instr in self.Instructions where instr.OpCode.
Code
== Code.Stloc && instr.Operand == varDef select instr).First();
86
if (instruction.Previous.OpCode.
Code
!= Code.Dup)
Mono.Cecil (5)
Mono.Cecil.Cil\CodeWriter.cs (3)
440
if (method.HasImplicitThis() && instruction.opcode.
Code
!= Code.Newobj)
446
if (instruction.opcode.
Code
== Code.Calli)
449
if (method.ReturnType.etype != ElementType.Void || instruction.opcode.
Code
== Code.Newobj)
Mono.Cecil.Cil\Instruction.cs (1)
171
if (opcode.
Code
!= Code.Calli)
Mono.Cecil.Cil\OpCode.cs (1)
103
get { return OpCodeNames.names [(int)
Code
]; }
Mono.Cecil.Rocks (4)
Mono.Cecil.Rocks\MethodBodyRocks.cs (4)
31
switch (instruction.OpCode.
Code
) {
190
if (instruction.OpCode.
Code
!= Code.Ldc_I8)
209
switch (instruction.OpCode.
Code
) {
355
switch (instruction.OpCode.
Code
) {
tlens (18)
TLens.Analyzers\DuplicatedCodeAnalyzer.cs (1)
21
switch (instr.OpCode.
Code
)
TLens.Analyzers\InverterCtorsChainAnalyzer.cs (2)
23
switch (instr.OpCode.
Code
)
40
var prev = instr.Previous.OpCode.
Code
;
TLens.Analyzers\LargeStaticArraysAnalyzer.cs (1)
20
if (instr.OpCode.
Code
!= Code.Ldtoken)
TLens.Analyzers\LargeStringsAnalyzer.cs (1)
21
switch (instr.OpCode.
Code
)
TLens.Analyzers\LimitedMethodCalls.cs (1)
22
switch (instr.OpCode.
Code
)
TLens.Analyzers\RedundantFieldInitializationAnalyzer.cs (6)
39
switch (instr.OpCode.
Code
)
67
if (instr.Previous.OpCode.
Code
!= Code.Ldnull)
73
if (instr.Previous.OpCode.
Code
!= Code.Conv_U || instr.Previous.Previous.OpCode.
Code
!= Code.Ldc_I4_0)
103
return instruction.OpCode.
Code
== Code.Ldc_I4_0;
108
if (instruction.OpCode.
Code
!= Code.Ldsfld)
TLens.Analyzers\TypeInstatiationAnalyzer.cs (1)
22
switch (instr.OpCode.
Code
)
TLens.Analyzers\UnnecessaryFieldsAssignmentAnalyzer.cs (2)
34
switch (instr.OpCode.
Code
)
48
switch (instr.Previous.OpCode.
Code
)
TLens.Analyzers\UnusedParametersAnalyzer.cs (1)
32
switch (instr.OpCode.
Code
)
TLens.Analyzers\UserOperatorCalledForNullCheckAnalyzer.cs (2)
30
switch (instr.OpCode.
Code
)
49
if (instr.Previous.OpCode.
Code
== Code.Ldnull)