Skip to content

Instantly share code, notes, and snippets.

@WhiteHyun
Created August 10, 2024 16:52
Show Gist options
  • Select an option

  • Save WhiteHyun/db8b0fa1eed2d10458abec8062d2815f to your computer and use it in GitHub Desktop.

Select an option

Save WhiteHyun/db8b0fa1eed2d10458abec8062d2815f to your computer and use it in GitHub Desktop.
Dumped StructDeclSyntax
StructDeclSyntax
├─attributes: AttributeListSyntax
│ ╰─[0]: AttributeSyntax
│ ├─atSign: atSign
│ ╰─attributeName: IdentifierTypeSyntax
│ ╰─name: identifier("DTO")
├─modifiers: DeclModifierListSyntax
├─structKeyword: keyword(SwiftSyntax.Keyword.struct)
├─name: identifier("TestModel")
╰─memberBlock: MemberBlockSyntax
├─leftBrace: leftBrace
├─members: MemberBlockItemListSyntax
│ ├─[0]: MemberBlockItemSyntax
│ │ ╰─decl: VariableDeclSyntax
│ │ ├─attributes: AttributeListSyntax
│ │ ├─modifiers: DeclModifierListSyntax
│ │ ├─bindingSpecifier: keyword(SwiftSyntax.Keyword.let)
│ │ ╰─bindings: PatternBindingListSyntax
│ │ ╰─[0]: PatternBindingSyntax
│ │ ├─pattern: IdentifierPatternSyntax
│ │ │ ╰─identifier: identifier("name")
│ │ ╰─typeAnnotation: TypeAnnotationSyntax
│ │ ├─colon: colon
│ │ ╰─type: IdentifierTypeSyntax
│ │ ╰─name: identifier("String")
│ ├─[1]: MemberBlockItemSyntax
│ │ ╰─decl: VariableDeclSyntax
│ │ ├─attributes: AttributeListSyntax
│ │ ├─modifiers: DeclModifierListSyntax
│ │ ├─bindingSpecifier: keyword(SwiftSyntax.Keyword.let)
│ │ ╰─bindings: PatternBindingListSyntax
│ │ ╰─[0]: PatternBindingSyntax
│ │ ├─pattern: IdentifierPatternSyntax
│ │ │ ╰─identifier: identifier("age")
│ │ ╰─typeAnnotation: TypeAnnotationSyntax
│ │ ├─colon: colon
│ │ ╰─type: IdentifierTypeSyntax
│ │ ╰─name: identifier("Int")
│ ╰─[2]: MemberBlockItemSyntax
│ ╰─decl: VariableDeclSyntax
│ ├─attributes: AttributeListSyntax
│ │ ╰─[0]: AttributeSyntax
│ │ ├─atSign: atSign
│ │ ├─attributeName: IdentifierTypeSyntax
│ │ │ ╰─name: identifier("Property")
│ │ ├─leftParen: leftParen
│ │ ├─arguments: LabeledExprListSyntax
│ │ │ ╰─[0]: LabeledExprSyntax
│ │ │ ├─label: identifier("key")
│ │ │ ├─colon: colon
│ │ │ ╰─expression: StringLiteralExprSyntax
│ │ │ ├─openingQuote: stringQuote
│ │ │ ├─segments: StringLiteralSegmentListSyntax
│ │ │ │ ╰─[0]: StringSegmentSyntax
│ │ │ │ ╰─content: stringSegment("created_at")
│ │ │ ╰─closingQuote: stringQuote
│ │ ╰─rightParen: rightParen
│ ├─modifiers: DeclModifierListSyntax
│ ├─bindingSpecifier: keyword(SwiftSyntax.Keyword.let)
│ ╰─bindings: PatternBindingListSyntax
│ ╰─[0]: PatternBindingSyntax
│ ├─pattern: IdentifierPatternSyntax
│ │ ╰─identifier: identifier("createTime")
│ ╰─typeAnnotation: TypeAnnotationSyntax
│ ├─colon: colon
│ ╰─type: IdentifierTypeSyntax
│ ╰─name: identifier("Date")
╰─rightBrace: rightBrace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment