Add AttrId to Attribute_

This commit is contained in:
Steven Fackler
2014-05-20 00:07:24 -07:00
parent 6304a27b80
commit c305473d3c
23 changed files with 94 additions and 30 deletions

View File

@@ -1024,9 +1024,13 @@ pub enum AttrStyle {
AttrInner,
}
#[deriving(Clone, Eq, TotalEq, Encodable, Decodable, Hash)]
pub struct AttrId(pub uint);
// doc-comments are promoted to attributes that have is_sugared_doc = true
#[deriving(Clone, Eq, TotalEq, Encodable, Decodable, Hash)]
pub struct Attribute_ {
pub id: AttrId,
pub style: AttrStyle,
pub value: @MetaItem,
pub is_sugared_doc: bool,