TParser.TokenComponentIdent function
Returns the path of a subcomponent starting from the current token.
Declaration
function TokenComponentIdent: stringDescription
If current token is toSymbol, TokenComponentIdent tries to find subcomponent names separated by a dot (.). The returned string is the longest subcomponent path found. If there are no subcomponents, current symbol is returned.
After this method has been called, subsequent calls to TokenString or TokenWideString return the same value returned by TokenComponentIdent.
Example
If source stream contains a.b.c and TParser is positioned on the first token (a), this method returns a.b.c.
Errors
If Token isn't toSymbol, or no valid symbol is found after a dot, an EParserError exception is raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
