C# Class PoorMansTSqlFormatterLib.Parsers.TSqlStandardParser

Inheritance: Interfaces.ISqlTokenParser
Mostra file Open project: rudi-bruchez/SQLTrismegiste

Public Methods

Method Description
ParseSQL ( ITokenList tokenList ) : XmlDocument

Private Methods

Method Description
AppendNodesWithMapping ( ParseTree sqlTree, IEnumerable tokens, string otherTokenMappingName, XmlElement targetContainer ) : void
ContentStartsWithKeyword ( XmlElement providedContainer, string contentToMatch ) : bool
ExtractTokensString ( ITokenList tokenList, IList significantTokenPositions ) : string
GetCompoundKeyword ( int &tokenID, int compoundKeywordCount, List compoundKeywordTokenCounts, List compoundKeywordRawStrings ) : string
GetEquivalentSqlNodeName ( SqlTokenType tokenType ) : string
GetKeywordMatchPhrase ( ITokenList tokenList, int tokenID, List &rawKeywordParts, List &tokenCounts, List &overflowNodes ) : string
GetSignificantTokenPositions ( ITokenList tokenList, int tokenID, int searchDistance ) : List
InitializeKeywordList ( ) : void
IsClauseStarter ( IToken token ) : bool
IsFollowedByLineBreakingWhiteSpaceOrSingleLineCommentOrEnd ( ITokenList tokenList, int tokenID ) : bool
IsLatestTokenAComma ( ParseTree sqlTree ) : bool
IsLatestTokenADDLDetailValue ( ParseTree sqlTree ) : bool
IsLatestTokenAMiscName ( XmlElement currentContainerElement ) : bool
IsLineBreakingWhiteSpaceOrComment ( IToken token ) : bool
IsStatementStarter ( IToken token ) : bool
ProcessCompoundKeyword ( ParseTree sqlTree, string newElementName, int &tokenID, XmlElement currentContainerElement, int compoundKeywordCount, List compoundKeywordTokenCounts, List compoundKeywordRawStrings ) : XmlElement
ProcessCompoundKeyword ( ITokenList tokenList, ParseTree sqlTree, XmlElement targetContainer, int &tokenID, List significantTokenPositions, int keywordCount ) : void
ProcessCompoundKeywordWithError ( ITokenList tokenList, ParseTree sqlTree, XmlElement currentContainerElement, int &tokenID, List significantTokenPositions, int keywordCount ) : void
TSqlStandardParser ( ) : System

Method Details

ParseSQL() public method

public ParseSQL ( ITokenList tokenList ) : XmlDocument
tokenList ITokenList
return System.Xml.XmlDocument