We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a83b64d commit aecc5e6Copy full SHA for aecc5e6
src/comp/middle/attr.rs
@@ -1,3 +1,5 @@
1
+// Functions dealing with attributes and meta_items
2
+
3
import std::vec;
4
import std::option;
5
import front::ast;
@@ -66,6 +68,7 @@ fn get_meta_item_name(&@ast::meta_item meta) -> ast::ident {
66
68
67
69
fn attr_meta(&ast::attribute attr) -> @ast::meta_item { @attr.node.value }
70
71
+// Get the meta_items from inside an attribute
72
fn attr_metas(&vec[ast::attribute] attrs) -> vec[@ast::meta_item] {
73
ret vec::map(attr_meta, attrs);
74
}
0 commit comments