TomlKeySyntax Class
A key, such as name, "quoted key", or the dotted key server.port.
public sealed class TomlKeySyntax : TomlSyntaxNodeRemarks
The parts of a dotted key and the dots between them are the tokens of one list, so the key keeps the whitespace around each dot exactly as it was written.
- Inheritance
TomlSyntaxNodeTomlKeySyntax
Properties
| Name | Description |
|---|---|
| IsDotted | Gets a value indicating whether the key has more than one part. |
| Names | Gets the name of each part of the key, with quotes removed and escape sequences resolved. |
| Parts | Gets the parts of the key, without the dots between them. |
| Tokens | Gets the parts of the key and the dots between them. |
IsDotted
TomlKeySyntax.csNames
TomlKeySyntax.csGets the name of each part of the key, with quotes removed and escape sequences resolved.
public IReadOnlyList<string> Names { get; }Parts
TomlKeySyntax.csGets the parts of the key, without the dots between them.
public IReadOnlyList<SyntaxToken> Parts { get; }Property value
Tokens
TomlKeySyntax.csGets the parts of the key and the dots between them.
public SyntaxTokenList Tokens { get; }Property value
Methods
| Name | Description |
|---|---|
| Accept(TomlSyntaxVisitor) | |
| Accept<TResult>(TomlSyntaxVisitor<TResult>) | |
| Update(SyntaxTokenList) | Returns this key with different tokens, or itself when nothing changed. |
| WithTokens(SyntaxTokenList) |
Accept overloads
Accept(TomlSyntaxVisitor)
TomlKeySyntax.cspublic override void Accept(TomlSyntaxVisitor visitor)Parameters
visitorTomlSyntaxVisitor
No documentation is available.
Accept<TResult>(TomlSyntaxVisitor<TResult>)
TomlKeySyntax.cspublic override TResult? Accept<TResult>(TomlSyntaxVisitor<TResult> visitor)No documentation is available.
Update(SyntaxTokenList)
TomlKeySyntax.csReturns this key with different tokens, or itself when nothing changed.
public TomlKeySyntax Update(SyntaxTokenList tokens)WithTokens(SyntaxTokenList)
TomlKeySyntax.cspublic TomlKeySyntax WithTokens(SyntaxTokenList tokens)No documentation is available.