@@ -221,20 +221,6 @@ import type { YulVariableDeclarationStatement } from './YulVariableDeclarationSt
221221import type { YulVariableDeclarationValue } from './YulVariableDeclarationValue' ;
222222import type { YulVariableNames } from './YulVariableNames' ;
223223
224- export type BinaryOperation =
225- | AdditiveExpression
226- | MultiplicativeExpression
227- | ExponentiationExpression
228- | AssignmentExpression
229- | BitwiseAndExpression
230- | BitwiseOrExpression
231- | BitwiseXorExpression
232- | ComparisonExpression
233- | EqualityExpression
234- | AndExpression
235- | OrExpression
236- | ShiftExpression ;
237-
238224export type FunctionLike =
239225 | ConstructorDefinition
240226 | FallbackFunctionDefinition
@@ -244,52 +230,6 @@ export type FunctionLike =
244230 | ReceiveFunctionDefinition
245231 | UnnamedFunctionDefinition ;
246232
247- export type CollectionNode =
248- | ArrayValues
249- | AssemblyFlags
250- | CallOptions
251- | CatchClauses
252- | ConstructorAttributes
253- | ContractMembers
254- | EnumMembers
255- | ErrorParameters
256- | EventParameters
257- | FallbackFunctionAttributes
258- | FunctionAttributes
259- | FunctionTypeAttributes
260- | HexStringLiterals
261- | IdentifierPath
262- | ImportDeconstructionSymbols
263- | InheritanceTypes
264- | InterfaceMembers
265- | LibraryMembers
266- | ModifierAttributes
267- | NamedArguments
268- | OverridePaths
269- | Parameters
270- | PositionalArguments
271- | ReceiveFunctionAttributes
272- | SourceUnitMembers
273- | Statements
274- | StateVariableAttributes
275- | StringLiterals
276- | StructMembers
277- | TupleDeconstructionElements
278- | TupleValues
279- | UnicodeStringLiterals
280- | UnnamedFunctionAttributes
281- | UsingDeconstructionSymbols
282- | VersionExpressionSet
283- | VersionExpressionSets
284- | VersionSpecifiers
285- | YulArguments
286- | YulParameters
287- | YulPath
288- | YulPaths
289- | YulStatements
290- | YulSwitchCases
291- | YulVariableNames ;
292-
293233export type BlockComment = MultiLineComment | MultiLineNatSpecComment ;
294234
295235export type LineComment = SingleLineComment | SingleLineNatSpecComment ;
@@ -514,6 +454,17 @@ export type StrictAstNode =
514454 | YulPaths
515455 | YulPath ;
516456
457+ export type CollectionNode = Extract < StrictAstNode , { items : unknown [ ] } > ;
458+
459+ export type BinaryOperation = Extract <
460+ StrictAstNode ,
461+ {
462+ leftOperand : Expression ;
463+ operator : string ;
464+ rightOperand : Expression ;
465+ }
466+ > ;
467+
517468export type AstNode =
518469 | StrictAstNode
519470 | Comment
0 commit comments