Example #1
0
        public string ResolveFieldRefToSlot(CST.FieldRef fieldRef)
        {
            var assemblyDef = default(CST.AssemblyDef);
            var typeDef     = default(CST.TypeDef);

            if (fieldRef.DefiningType.PrimTryResolve(env.Global, out assemblyDef, out typeDef))
            {
                return(TypeMappingFor(assemblyDef, typeDef).ResolveFieldToSlot(fieldRef.QualifiedMemberName));
            }
            else
            {
                throw new InvalidOperationException("invalid field ref");
            }
        }
Example #2
0
 public void SeenField(FieldRef fieldRef, bool isAlwaysUsed)
 {
     Add(Fields, fieldRef, 1, isAlwaysUsed);
 }
Example #3
0
 public FieldCell(Expression obj, FieldRef field)
 {
     Object = obj;
     Field  = field;
 }