Skip to content

Commit aecc5e6

Browse files
committed
Add comments to middle::attr. Issue #487
1 parent a83b64d commit aecc5e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/comp/middle/attr.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Functions dealing with attributes and meta_items
2+
13
import std::vec;
24
import std::option;
35
import front::ast;
@@ -66,6 +68,7 @@ fn get_meta_item_name(&@ast::meta_item meta) -> ast::ident {
6668

6769
fn attr_meta(&ast::attribute attr) -> @ast::meta_item { @attr.node.value }
6870

71+
// Get the meta_items from inside an attribute
6972
fn attr_metas(&vec[ast::attribute] attrs) -> vec[@ast::meta_item] {
7073
ret vec::map(attr_meta, attrs);
7174
}

0 commit comments

Comments
 (0)