AttributeListSyntax
io.joern.swiftsrc2cpg.parser.SwiftNodeSyntax.AttributeListSyntax
case class AttributeListSyntax(json: Value) extends SyntaxCollection
Documentation
A list of attributes that can be attached to a declaration.
An element in this collection can either be an attribute itself or an IfConfigDeclSyntax that contains attributes. This is because attributes can be added conditional on compilcation conditions, for example.
#if !DISABLE_DEPRECATIONS
@available(*, deprecated)
#endif
func myFunction() {}
Children
(AttributeSyntax | IfConfigDeclSyntax) *
Contained in
AccessorDeclSyntax.AccessorDeclSyntax/attributesActorDeclSyntax.ActorDeclSyntax/attributesAssociatedTypeDeclSyntax.AssociatedTypeDeclSyntax/attributesAttributedTypeSyntax.AttributedTypeSyntax/attributesClassDeclSyntax.ClassDeclSyntax/attributesClosureParameterSyntax.ClosureParameterSyntax/attributesClosureSignatureSyntax.ClosureSignatureSyntax/attributesDeinitializerDeclSyntax.DeinitializerDeclSyntax/attributesEditorPlaceholderDeclSyntax.EditorPlaceholderDeclSyntax/attributesEnumCaseDeclSyntax.EnumCaseDeclSyntax/attributesEnumDeclSyntax.EnumDeclSyntax/attributesExtensionDeclSyntax.ExtensionDeclSyntax/attributesFunctionDeclSyntax.FunctionDeclSyntax/attributesFunctionParameterSyntax.FunctionParameterSyntax/attributesGenericParameterSyntax.GenericParameterSyntax/attributesIfConfigClauseSyntax.IfConfigClauseSyntax/elementsImportDeclSyntax.ImportDeclSyntax/attributesInitializerDeclSyntax.InitializerDeclSyntax/attributesMacroDeclSyntax.MacroDeclSyntax/attributesMacroExpansionDeclSyntax.MacroExpansionDeclSyntax/attributesMissingDeclSyntax.MissingDeclSyntax/attributesPrecedenceGroupDeclSyntax.PrecedenceGroupDeclSyntax/attributesProtocolDeclSyntax.ProtocolDeclSyntax/attributesStructDeclSyntax.StructDeclSyntax/attributesSubscriptDeclSyntax.SubscriptDeclSyntax/attributesTypeAliasDeclSyntax.TypeAliasDeclSyntax/attributesVariableDeclSyntax.VariableDeclSyntax/attributes
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass Any
Members list
In this article