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"); } }
public void SeenField(FieldRef fieldRef, bool isAlwaysUsed) { Add(Fields, fieldRef, 1, isAlwaysUsed); }
public FieldCell(Expression obj, FieldRef field) { Object = obj; Field = field; }