Exemple #1
0
 // Construction is the same as for Fields,
 #region Construction
 public LiteralFieldExpEntry(
     string stName,                  // name of this field
     TypeEntry tType,                // type of this field
     TypeEntry tDefiningClassType,   // type of class we're defined in
     AST.FieldDecl nodeDecl          // AST node that we're defined at
     )
     : base(stName, tType, tDefiningClassType, nodeDecl)
 {
 }
Exemple #2
0
        public FieldExpEntry(
            string stName,                  // name of this field
            TypeEntry tType,                // type of this field
            TypeEntry tDefiningClassType,   // type of class we're defined in
            AST.FieldDecl nodeDecl          // AST node that we're defined at
            )
        {
            m_strName       = stName;
            m_type          = tType;
            m_nodeDecl      = nodeDecl;
            m_tClassDefined = tDefiningClassType;

            Debug.Assert(m_type != null);
            Debug.Assert(m_nodeDecl != null); // @todo - allow this for imports?
            Debug.Assert(m_tClassDefined != null);
        }