예제 #1
0
파일: Symbol.cs 프로젝트: richardy2012/blue
 // 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;
 }
예제 #2
0
파일: AST.cs 프로젝트: chenzuo/blue
    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);
    }
예제 #3
0
파일: Symbol.cs 프로젝트: chenzuo/blue
 // 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;
 }
예제 #4
0
파일: AST.cs 프로젝트: chenzuo/blue
 // 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);
 }
예제 #5
0
파일: ObjExpAST.cs 프로젝트: chenzuo/blue
 public FieldExp(
     FieldExpEntry symbol,
     Exp expInstance // null for statics
 )
 {
     Debug.Assert(symbol != null);
     m_symbol = symbol;
     m_expInstance = expInstance;
 }