DeclaratorHandler

class DeclaratorHandler(lang: CXXLanguageFrontend) : CXXHandler<Declaration, IASTNameOwner>

Takes care of translating a declarator into a Declaration.

See DeclarationHandler for a detailed explanation, why this is split into a dedicated handler.

Constructors

Link copied to clipboard
constructor(lang: CXXLanguageFrontend)

Functions

Link copied to clipboard
open override fun handle(ctx: IASTNameOwner): Declaration?

We intentionally override the logic of Handler.handle because we do not want the map-based logic, but rather want to make use of the Kotlin-when syntax.

Link copied to clipboard
open override fun handleNode(node: IASTNameOwner): Declaration
Link copied to clipboard
open override fun <N, S> setCodeAndLocation(cpgNode: N, astNode: S?)

Properties

Link copied to clipboard
open override val ctx: TranslationContext
Link copied to clipboard
Link copied to clipboard
open override val language: Language<CXXLanguageFrontend>
Link copied to clipboard
open override val namespace: Name?
Link copied to clipboard
open override val scope: Scope?