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
FromCharValuecharThe first character in the prefix mapping range.
ToCharValuechar?The last character in the prefix mapping range. Matches the
FromCharValueif unspecified.
Properties
FromCharValue
The first character in the prefix mapping range.
public char FromCharValue { get; init; }
Property Value
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
identifierNamestringThe identifier name to match.
Returns
Remarks
If this method returns true, the associated symbol has the implicit data type defined by the corresponding Def<Type> directive.