mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
feat(ast): remove expression property from Function (#2247)
This commit is contained in:
parent
02c18d8506
commit
165f948227
6 changed files with 0 additions and 7 deletions
|
|
@ -1683,7 +1683,6 @@ pub struct Function<'a> {
|
|||
#[cfg_attr(feature = "serde", serde(flatten))]
|
||||
pub span: Span,
|
||||
pub id: Option<BindingIdentifier>,
|
||||
pub expression: bool,
|
||||
pub generator: bool,
|
||||
pub r#async: bool,
|
||||
/// Declaring `this` in a Function <https://www.typescriptlang.org/docs/handbook/2/functions.html#declaring-this-in-a-function>
|
||||
|
|
|
|||
|
|
@ -773,7 +773,6 @@ impl<'a> AstBuilder<'a> {
|
|||
r#type: FunctionType,
|
||||
span: Span,
|
||||
id: Option<BindingIdentifier>,
|
||||
expression: bool,
|
||||
generator: bool,
|
||||
r#async: bool,
|
||||
this_param: Option<TSThisParameter<'a>>,
|
||||
|
|
@ -787,7 +786,6 @@ impl<'a> AstBuilder<'a> {
|
|||
r#type,
|
||||
span,
|
||||
id,
|
||||
expression,
|
||||
generator,
|
||||
r#async,
|
||||
this_param,
|
||||
|
|
|
|||
|
|
@ -125,7 +125,6 @@ impl<'a> Parser<'a> {
|
|||
function_type,
|
||||
self.end_span(span),
|
||||
id,
|
||||
false, // expression
|
||||
generator,
|
||||
r#async,
|
||||
this_param,
|
||||
|
|
|
|||
|
|
@ -127,7 +127,6 @@ impl<'a> ArrowFunctions<'a> {
|
|||
FunctionType::FunctionExpression,
|
||||
SPAN,
|
||||
None,
|
||||
false,
|
||||
arrow_expr.generator,
|
||||
arrow_expr.r#async,
|
||||
None,
|
||||
|
|
|
|||
|
|
@ -612,7 +612,6 @@ impl<'a> Decorators<'a> {
|
|||
None,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
None,
|
||||
self.ast.formal_parameters(
|
||||
SPAN,
|
||||
|
|
|
|||
|
|
@ -723,7 +723,6 @@ impl<'a> TypeScript<'a> {
|
|||
None,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
None,
|
||||
params,
|
||||
Some(body),
|
||||
|
|
|
|||
Loading…
Reference in a new issue