Ejemplo n.º 1
0
        /// <summary>
        /// Returns a member with the given name
        /// </summary>
        public Declaration GetMember(String id)
        {
            Declaration d;

            if ((d = fields.GetDeclaration(id)) != null)
            {
                return(d);
            }
            if ((d = decls.GetDeclaration(id)) != null)
            {
                return(d);
            }
            if ((d = properties.GetDeclaration(id)) != null)
            {
                return(d);
            }
            return(null);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns a field with the given name
 /// </summary>
 public virtual RecordFieldDeclaration GetField(String id)
 {
     return(compTypes.GetDeclaration(id) as RecordFieldDeclaration);
 }