示例#1
0
文件: AST.cs 项目: chenzuo/blue
 // Resolve this
 public override void ResolveMember(
     TypeEntry symDefiningClass, 
     ISemanticResolver s,
     ICLRtypeProvider provider
 )
 {
     m_tType.ResolveType(s);
     
 // Spoof bodies
             
     if (HasGet)
     {                        
         m_declGet.ResolveMember(symDefiningClass, s, null);
         m_declGet.Symbol.IsSpecialName = true;
     }
     if (HasSet)
     {   
         m_declSet.ResolveMember(symDefiningClass, s, null);
         m_declSet.Symbol.IsSpecialName = true;
     }
 
 // Create a symbol for the property
     m_symbol = new SymbolEngine.PropertyExpEntry(symDefiningClass, this, m_declGet, m_declSet);
     
     s.GetCurrentContext().AddSymbol(m_symbol);
 }
示例#2
0
文件: ObjExpAST.cs 项目: chenzuo/blue
 public PropertyExp(
     PropertyExpEntry symbol,
     Exp expInstance // null for statics
     )
 {
     Debug.Assert(symbol != null);
     m_symbol = symbol;
     m_expInstance = expInstance;
 }