Table of Contents

TCodeTypeDeclaration.AddFunction Method

Adds a function to this type declaration.

Syntax

Unit: Bcl.Code.MetaClasses

function TCodeTypeDeclaration.AddFunction(AName: string; AResultType: string; AVisibility: TMemberVisibility): TCodeMemberMethod;

Parameters

<-> Parameter Type Description
AName string The function name.
AResultType string The return type name.
AVisibility TMemberVisibility The visibility of the function.

Returns

The created TCodeMemberMethod instance.

See also