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 438e3eb commit 0bbe466Copy full SHA for 0bbe466
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: a83b64d15dd8e4ad175fec976772a624437eb9b1
+refs/heads/master: aecc5e6e0f1a2927210f68973b2a3c6353c39f01
trunk/src/comp/middle/attr.rs
@@ -1,3 +1,5 @@
+// Functions dealing with attributes and meta_items
+
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