@@ -8,16 +8,16 @@ use std::slice;
8
8
9
9
#[ deriving( Eq ) ]
10
10
pub struct NumericValue {
11
- representation : ~str ,
12
- value : f64 ,
13
- int_value : Option < i64 > ,
11
+ pub representation : ~str ,
12
+ pub value : f64 ,
13
+ pub int_value : Option < i64 > ,
14
14
}
15
15
16
16
17
17
#[ deriving( Eq ) ]
18
18
pub struct SourceLocation {
19
- line : uint , // First line is 1
20
- column : uint , // First character of a line is at column 1
19
+ pub line : uint , // First line is 1
20
+ pub column : uint , // First character of a line is at column 1
21
21
}
22
22
23
23
@@ -70,25 +70,25 @@ pub enum ComponentValue {
70
70
71
71
#[ deriving( Eq ) ]
72
72
pub struct Declaration {
73
- location : SourceLocation ,
74
- name : ~str ,
75
- value : ~[ ComponentValue ] ,
76
- important : bool ,
73
+ pub location : SourceLocation ,
74
+ pub name : ~str ,
75
+ pub value : ~[ ComponentValue ] ,
76
+ pub important : bool ,
77
77
}
78
78
79
79
#[ deriving( Eq ) ]
80
80
pub struct QualifiedRule {
81
- location : SourceLocation ,
82
- prelude : ~[ ComponentValue ] ,
83
- block : ~[ Node ] ,
81
+ pub location : SourceLocation ,
82
+ pub prelude : ~[ ComponentValue ] ,
83
+ pub block : ~[ Node ] ,
84
84
}
85
85
86
86
#[ deriving( Eq ) ]
87
87
pub struct AtRule {
88
- location : SourceLocation ,
89
- name : ~str ,
90
- prelude : ~[ ComponentValue ] ,
91
- block : Option < ~[ Node ] > ,
88
+ pub location : SourceLocation ,
89
+ pub name : ~str ,
90
+ pub prelude : ~[ ComponentValue ] ,
91
+ pub block : Option < ~[ Node ] > ,
92
92
}
93
93
94
94
#[ deriving( Eq ) ]
@@ -106,8 +106,8 @@ pub enum Rule {
106
106
107
107
#[ deriving( Eq ) ]
108
108
pub struct SyntaxError {
109
- location : SourceLocation ,
110
- reason : ErrorReason ,
109
+ pub location : SourceLocation ,
110
+ pub reason : ErrorReason ,
111
111
}
112
112
113
113
#[ deriving( Eq ) ]
@@ -139,7 +139,7 @@ impl<'a> SkipWhitespaceIterable<'a> for &'a [ComponentValue] {
139
139
140
140
#[ deriving( Clone ) ]
141
141
pub struct SkipWhitespaceIterator < ' a > {
142
- iter_with_whitespace : slice:: Items < ' a , ComponentValue > ,
142
+ pub iter_with_whitespace : slice:: Items < ' a , ComponentValue > ,
143
143
}
144
144
145
145
impl < ' a > Iterator < & ' a ComponentValue > for SkipWhitespaceIterator < ' a > {
0 commit comments