Table of Contents

Class DefTypePrefixMapping

Namespace
RDCore.SDK.Model.AST.Directives
Assembly
RDCore.SDK.dll

Maps a range of prefix characters to a Def<Type> directive.

public record DefTypePrefixMapping : IEquatable<DefTypePrefixMapping>
Inheritance
DefTypePrefixMapping
Implements
Inherited Members

Constructors

DefTypePrefixMapping(char, char?)

Maps a range of prefix characters to a Def<Type> directive.

public DefTypePrefixMapping(char FromCharValue, char? ToCharValue = null)

Parameters

FromCharValue char

The first character in the prefix mapping range.

ToCharValue char?

The last character in the prefix mapping range. Matches the FromCharValue if unspecified.

Properties

FromCharValue

The first character in the prefix mapping range.

public char FromCharValue { get; init; }

Property Value

char

ToCharValue

The last character in the prefix mapping range. Matches the FromCharValue if unspecified.

public char? ToCharValue { get; init; }

Property Value

char?

Methods

IsMatch(string)

true if the specified identifierName matches this prefix mapping rule.

public bool IsMatch(string identifierName)

Parameters

identifierName string

The identifier name to match.

Returns

bool

Remarks

If this method returns true, the associated symbol has the implicit data type defined by the corresponding Def<Type> directive.