Skip to content

Commit

Permalink
chore: fix restack mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Aug 1, 2024
1 parent 268db6e commit 5c6a711
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tasks/ast_codegen/src/generators/ast_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ use std::{borrow::Cow, collections::HashMap};
use convert_case::{Case, Casing};
use itertools::Itertools;
use lazy_static::lazy_static;
use proc_macro2::{TokenStream, TokenTree};
use proc_macro2::TokenStream;
use quote::{format_ident, quote, ToTokens};
use syn::{
parse_quote, punctuated::Punctuated, AngleBracketedGenericArguments, Attribute, Expr, Field,
FnArg, GenericArgument, GenericParam, Ident, ImplItemFn, Lit, Meta, MetaNameValue, PatLit,
PatType, PathArguments, PredicateType, Token, Type, TypePath, Variant, WhereClause,
parse_quote, punctuated::Punctuated, AngleBracketedGenericArguments, Attribute, Expr,
GenericArgument, Ident, Lit, Meta, MetaNameValue, PathArguments, Token, Type, TypePath,
Variant,
};

use crate::{
Expand Down Expand Up @@ -319,6 +319,8 @@ fn generate_struct_builder_fn(ty: &RStruct, ctx: &CodegenCtx) -> TokenStream {
}
}

// TODO: remove me
#[allow(dead_code)]
#[derive(Debug)]
struct Param {
is_default: bool,
Expand Down Expand Up @@ -426,6 +428,8 @@ impl<'p> DocComment<'p> {
/// Add a description section made up of multiple lines.
///
/// Each line will be turned into its own paragraph.
// TODO: remove me
#[allow(dead_code)]
pub fn with_description_lines<L, S>(mut self, description: L) -> Self
where
S: Into<Cow<'static, str>>,
Expand Down Expand Up @@ -524,6 +528,9 @@ fn get_doc_comment(attrs: &[Attribute]) -> Option<String> {
_ => None,
})
}

// TODO: remove me
#[allow(dead_code)]
fn get_enum_params(enum_: &REnum, ctx: &CodegenCtx) -> Vec<Param> {
let as_type = enum_.as_type();
let inner_type = match &as_type {
Expand Down

0 comments on commit 5c6a711

Please sign in to comment.