asProtocol(_:)

Return the non-type erased version of this syntax node if it conforms to NamedDeclSyntax. Otherwise return nil. Note that this will incur an existential conversion.

SyntaxTraits.swift:313
func asProtocol(_: NamedDeclSyntax.Protocol) -> NamedDeclSyntax?