Skip to content

SageBuilder::function_declaration_ownership::sourceLexicalCanonicalReplacementIn

Publish a source declaration in its exact lexical owner while replacing a later source redeclaration that was necessarily constructed first by a re‐entrant frontend translation. The replacement target remains in its own lexical source position; only the canonical declaration/symbol basis is re‐rooted to the earlier source declaration.

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

static
function_declaration_ownership
sourceLexicalCanonicalReplacementIn(
    SgScopeStatement* lexicalOwner,
    SgFunctionDeclaration* target);

Return Value

Exact, typed structural ownership established by function‐declaration builders. Invalid kind/owner combinations cannot be constructed.

Parameters

Name

Description

lexicalOwner

This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).

target

This class represents the concept of a function declaration statement.

Created with MrDocs