Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Dec 5, 2023
1 parent 10e534f commit a8c7d67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 2 additions & 6 deletions macro/src/dialect/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ mod builder;
mod element_kind;
mod field_kind;
mod operation_field;
mod sequence_info;

use self::element_kind::ElementKind;
use self::operation_field::OperationField;
use self::sequence_info::SequenceInfo;
use self::{builder::OperationBuilder, field_kind::FieldKind};
use super::utility::sanitize_documentation;
use crate::dialect::{
Expand All @@ -16,12 +18,6 @@ use proc_macro2::TokenStream;
use quote::{format_ident, quote, ToTokens, TokenStreamExt};
use tblgen::{error::WithLocation, record::Record};

#[derive(Debug, Clone)]
pub struct SequenceInfo {
index: usize,
len: usize,
}

#[derive(Clone, Debug)]
pub enum VariadicKind {
Simple {
Expand Down
5 changes: 5 additions & 0 deletions macro/src/dialect/operation/sequence_info.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#[derive(Debug, Clone)]
pub struct SequenceInfo {
pub index: usize,
pub len: usize,
}

0 comments on commit a8c7d67

Please sign in to comment.