// An event with a default handler is backed by a field. // This does not have to be set. internal void SetDefaultField(FieldExpEntry f) { m_field = f; }
public void ResolveMemberAsLiteral(TypeEntry symDefiningClass, ISemanticResolver s, object o) { //f.FieldTypeSig.ResolveType(s); m_tType.ResolveType(s); TypeEntry t = m_tType.BlueType; m_symbol = new LiteralFieldExpEntry(Name, t, symDefiningClass, this); LiteralFieldExpEntry l = (LiteralFieldExpEntry) m_symbol; l.Data = o; s.GetCurrentContext().AddSymbol(m_symbol); }
// Resolve member public override void ResolveMember( TypeEntry symDefiningClass, ISemanticResolver s, ICLRtypeProvider provider ) { m_tType.ResolveType(s); TypeEntry t = m_tType.BlueType; m_symbol = new FieldExpEntry(m_stName, t, symDefiningClass, this); s.GetCurrentContext().AddSymbol(m_symbol); m_symbol.SetInfo(provider); }
public FieldExp( FieldExpEntry symbol, Exp expInstance // null for statics ) { Debug.Assert(symbol != null); m_symbol = symbol; m_expInstance = expInstance; }