update_parent_enum_from_node


Description:

protected string? update_parent_enum_from_node (string node_type_lower, Node node, string code_content, string? parent_enum_name)

Update parent enum string if node is an enum declaration.

Parameters:

node_type_lower

Lowercase node type string

node

AST node

code_content

Source code content for text extraction

parent_enum_name

Current parent enum string (may be null)

Returns:

Updated parent enum string, or parent_enum_name if node is not an enum