Skip to content

Commit 0bbe466

Browse files
committed
---
yaml --- r: 3420 b: refs/heads/master c: aecc5e6 h: refs/heads/master v: v3
1 parent 438e3eb commit 0bbe466

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: a83b64d15dd8e4ad175fec976772a624437eb9b1
2+
refs/heads/master: aecc5e6e0f1a2927210f68973b2a3c6353c39f01

trunk/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)