Add AttrId to Attribute_
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user