Class UniqueFunctionValidation

Predefined validation to produce errors for those overloaded functions which cannot be distinguished when calling them.

Implements

Constructors

Properties

foundDeclarations: Map<string, unknown[]> = ...
isRelevant: (languageNode: unknown) => boolean
services: TypirServices

Methods

  • Calculates a key for a function which encodes its unique properties, i.e. duplicate functions have the same key. This key is used to identify duplicated functions. Override this method to change the properties which make a function unique.

    Parameters

    Returns string

    a string key