Skip to content

Commit

Permalink
witx: make some render funcs public, so we can reuse them in witx-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat Hickey authored and pchickey committed Dec 20, 2019
1 parent 031bbe0 commit 448bd07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/witx/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ impl fmt::Display for SExpr {
}

impl SExpr {
fn word(s: &str) -> SExpr {
pub fn word(s: &str) -> SExpr {
SExpr::Word(s.to_string())
}
fn ident(s: &str) -> SExpr {
pub fn ident(s: &str) -> SExpr {
SExpr::Ident(s.to_string())
}
fn quote(s: &str) -> SExpr {
pub fn quote(s: &str) -> SExpr {
SExpr::Quote(s.to_string())
}
fn annot(s: &str) -> SExpr {
pub fn annot(s: &str) -> SExpr {
SExpr::Annot(s.to_string())
}
fn docs(d: &str, s: SExpr) -> SExpr {
pub fn docs(d: &str, s: SExpr) -> SExpr {
if d.is_empty() {
s
} else {
Expand Down

0 comments on commit 448bd07

Please sign in to comment.