public void TestGetFieldInfo()
 {
     Assert.Equal(
         typeof(IlFieldInfoTest).GetField("Test"),
         IlFieldInfo.GetFieldInfo(() => Test)
         );
 }
Exemple #2
0
 public AstNodeExprLValue PrefixDestinationEnabled() => Ast.FieldAccess(PrefixDestination(),
                                                                        IlFieldInfo.GetFieldInfo(() => CpuThreadStateMethods.PrefixDestination.Enabled));
Exemple #3
0
 public AstNodeExprLValue PrefixDestination() => Ast.FieldAccess(Ast.CpuThreadStateExpr,
                                                                 IlFieldInfo.GetFieldInfo(() => CpuThreadStateMethods.PrefixSource));
Exemple #4
0
 public AstNodeExprLValue PrefixSourceEnabled() => Ast.FieldAccess(PrefixSource(),
                                                                   IlFieldInfo.GetFieldInfo(() => CpuThreadStateMethods.PrefixSource.Enabled));