Table of Contents

Class DeclarationShadowing

Namespace
RDCore.SDK.Semantics.Static
Assembly
RDCore.SDK.dll

Tells what a local or a parameter hides (Hides): what its name means in the rest of the module.

public static class DeclarationShadowing
Inheritance
DeclarationShadowing
Inherited Members

Remarks

A simple name is first matched in its procedure (MS-VBAL §5.6.10), so a local or a parameter named like a member of its module, a Public member of another module, a member of a library (Left, Date) or a module, means itself in its procedure, and that other declaration everywhere else. What it hides is what the name resolves to as seen from the module, past the procedure's own names.

Methods

Of(Symbol, ISymbolResolver, Uri)

What declared hides.

public static HiddenDeclaration? Of(Symbol declared, ISymbolResolver resolver, Uri module)

Parameters

declared Symbol

A symbol the module declares.

resolver ISymbolResolver

Resolves names as the session has them.

module Uri

The module that declares it.

Returns

HiddenDeclaration

What it hides, or null when it is not a local or a parameter, or its name means nothing else in the module, or means more than one thing there (which is an error of its own).