Exemple #1
0
 // 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;
 }
Exemple #2
0
    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);
    }
Exemple #3
0
 // 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;
 }
Exemple #4
0
 // 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);
 }
Exemple #5
0
 public FieldExp(
     FieldExpEntry symbol,
     Exp expInstance // null for statics
 )
 {
     Debug.Assert(symbol != null);
     m_symbol = symbol;
     m_expInstance = expInstance;
 }