Table of Contents

TCodeUnit.FindType Method

Searches for a type declaration by name.

Syntax

Unit: Bcl.Code.MetaClasses

function TCodeUnit.FindType(const AName: string): TCodeTypeDeclaration;

Parameters

<-> Parameter Type Description
const AName string The type name to find (case-insensitive).

Returns

The matching TCodeTypeDeclaration, or nil if not found.

See also