Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Aug 5, 2023
1 parent fd0ef21 commit d2ed102
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
11 changes: 0 additions & 11 deletions crates/syn-solidity/src/attribute/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,39 +21,28 @@ pub use variable::{VariableAttribute, VariableAttributes};
kw_enum! {
/// A storage location.
pub enum Storage {
/// `memory`
Memory(kw::memory),
/// `storage`
Storage(kw::storage),
/// `calldata`
Calldata(kw::calldata),
}
}

kw_enum! {
/// A visibility attribute.
pub enum Visibility {
/// `external`
External(kw::external),
/// `public`
Public(kw::public),
/// `internal`
Internal(kw::internal),
/// `private`
Private(kw::private),
}
}

kw_enum! {
/// A mutability attribute.
pub enum Mutability {
/// `pure`
Pure(kw::pure),
/// `view`
View(kw::view),
/// `constant`
Constant(kw::constant),
/// `payable`
Payable(kw::payable),
}
}
Expand Down
5 changes: 0 additions & 5 deletions crates/syn-solidity/src/item/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,10 @@ impl ItemFunction {
kw_enum! {
/// The kind of function.
pub enum FunctionKind {
/// `constructor`
Constructor(kw::constructor),
/// `function`
Function(kw::function),
/// `fallback`
Fallback(kw::fallback),
/// `receive`
Receive(kw::receive),
/// `modifier`
Modifier(kw::modifier),
}
}
Expand Down
1 change: 1 addition & 0 deletions crates/syn-solidity/src/lit/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ impl Spanned for LitDenominated {
}

kw_enum! {
/// A sub-denomination suffix for a number literal.
pub enum SubDenomination {
Wei(kw::wei),
Gwei(kw::gwei),
Expand Down

0 comments on commit d2ed102

Please sign in to comment.