• Home
  • Raw
  • Download

Lines Matching refs:Token

101 struct Token : ilist_node<Token> {  struct
131 Token() : Kind(TK_Error) {} in Token() argument
138 struct ilist_sentinel_traits<Token> {
139 Token *createSentinel() const { in createSentinel()
142 static void destroySentinel(Token*) {} in destroySentinel()
144 Token *provideInitialHead() const { return createSentinel(); } in provideInitialHead()
145 Token *ensureHead(Token*) const { return createSentinel(); } in ensureHead()
146 static void noteHead(Token*, Token*) {} in noteHead()
149 mutable Token Sentinel;
153 struct ilist_node_traits<Token> {
154 Token *createNode(const Token &V) { in createNode()
155 return new (Alloc.Allocate<Token>()) Token(V); in createNode()
157 static void deleteNode(Token *V) {} in deleteNode()
159 void addNodeToList(Token *) {} in addNodeToList()
160 void removeNodeFromList(Token *) {} in removeNodeFromList()
162 ilist_iterator<Token> /*first*/, in transferNodesFromList()
163 ilist_iterator<Token> /*last*/) {} in transferNodesFromList()
169 typedef ilist<Token> TokenQueueT;
257 Token &peekNext();
260 Token getNext();
408 , Token::TokenKind Kind
543 Token T = scanner.getNext(); in dumpTokens()
545 case Token::TK_StreamStart: in dumpTokens()
548 case Token::TK_StreamEnd: in dumpTokens()
551 case Token::TK_VersionDirective: in dumpTokens()
554 case Token::TK_TagDirective: in dumpTokens()
557 case Token::TK_DocumentStart: in dumpTokens()
560 case Token::TK_DocumentEnd: in dumpTokens()
563 case Token::TK_BlockEntry: in dumpTokens()
566 case Token::TK_BlockEnd: in dumpTokens()
569 case Token::TK_BlockSequenceStart: in dumpTokens()
572 case Token::TK_BlockMappingStart: in dumpTokens()
575 case Token::TK_FlowEntry: in dumpTokens()
578 case Token::TK_FlowSequenceStart: in dumpTokens()
581 case Token::TK_FlowSequenceEnd: in dumpTokens()
584 case Token::TK_FlowMappingStart: in dumpTokens()
587 case Token::TK_FlowMappingEnd: in dumpTokens()
590 case Token::TK_Key: in dumpTokens()
593 case Token::TK_Value: in dumpTokens()
596 case Token::TK_Scalar: in dumpTokens()
599 case Token::TK_Alias: in dumpTokens()
602 case Token::TK_Anchor: in dumpTokens()
605 case Token::TK_Tag: in dumpTokens()
608 case Token::TK_Error: in dumpTokens()
612 if (T.Kind == Token::TK_StreamEnd) in dumpTokens()
614 else if (T.Kind == Token::TK_Error) in dumpTokens()
624 llvm::yaml::Token T = scanner.getNext(); in scanTokens()
625 if (T.Kind == Token::TK_StreamEnd) in scanTokens()
627 else if (T.Kind == Token::TK_Error) in scanTokens()
711 Token &Scanner::peekNext() { in peekNext()
719 TokenQueue.push_back(Token()); in peekNext()
738 Token Scanner::getNext() { in getNext()
739 Token Ret = peekNext(); in getNext()
950 Token T; in unrollIndent()
956 T.Kind = Token::TK_BlockEnd; in unrollIndent()
966 , Token::TokenKind Kind in rollIndent()
974 Token T; in rollIndent()
1019 Token T; in scanStreamStart()
1020 T.Kind = Token::TK_StreamStart; in scanStreamStart()
1038 Token T; in scanStreamEnd()
1039 T.Kind = Token::TK_StreamEnd; in scanStreamEnd()
1060 Token T; in scanDirective()
1061 T.Kind = Token::TK_VersionDirective; in scanDirective()
1074 Token T; in scanDocumentIndicator()
1075 T.Kind = IsStart ? Token::TK_DocumentStart : Token::TK_DocumentEnd; in scanDocumentIndicator()
1083 Token T; in scanFlowCollectionStart()
1084 T.Kind = IsSequence ? Token::TK_FlowSequenceStart in scanFlowCollectionStart()
1085 : Token::TK_FlowMappingStart; in scanFlowCollectionStart()
1102 Token T; in scanFlowCollectionEnd()
1103 T.Kind = IsSequence ? Token::TK_FlowSequenceEnd in scanFlowCollectionEnd()
1104 : Token::TK_FlowMappingEnd; in scanFlowCollectionEnd()
1116 Token T; in scanFlowEntry()
1117 T.Kind = Token::TK_FlowEntry; in scanFlowEntry()
1125 rollIndent(Column, Token::TK_BlockSequenceStart, TokenQueue.end()); in scanBlockEntry()
1128 Token T; in scanBlockEntry()
1129 T.Kind = Token::TK_BlockEntry; in scanBlockEntry()
1138 rollIndent(Column, Token::TK_BlockMappingStart, TokenQueue.end()); in scanKey()
1143 Token T; in scanKey()
1144 T.Kind = Token::TK_Key; in scanKey()
1156 Token T; in scanValue()
1157 T.Kind = Token::TK_Key; in scanValue()
1168 rollIndent(SK.Column, Token::TK_BlockMappingStart, i); in scanValue()
1173 rollIndent(Column, Token::TK_BlockMappingStart, TokenQueue.end()); in scanValue()
1177 Token T; in scanValue()
1178 T.Kind = Token::TK_Value; in scanValue()
1243 Token T; in scanFlowScalar()
1244 T.Kind = Token::TK_Scalar; in scanFlowScalar()
1320 Token T; in scanPlainScalar()
1321 T.Kind = Token::TK_Scalar; in scanPlainScalar()
1355 Token T; in scanAliasOrAnchor()
1356 T.Kind = IsAlias ? Token::TK_Alias : Token::TK_Anchor; in scanAliasOrAnchor()
1397 Token T; in scanBlockScalar()
1398 T.Kind = Token::TK_Scalar; in scanBlockScalar()
1419 Token T; in scanTag()
1420 T.Kind = Token::TK_Tag; in scanTag()
1541 void Stream::handleYAMLDirective(const Token &t) { in handleYAMLDirective()
1573 Token &Node::peekNext() { in peekNext()
1577 Token Node::getNext() { in getNext()
1589 void Node::setError(const Twine &Msg, Token &Tok) const { in setError()
1665 Token T; in unescapeDoubleQuoted()
1780 Token &t = peekNext(); in getKey()
1781 if ( t.Kind == Token::TK_BlockEnd in getKey()
1782 || t.Kind == Token::TK_Value in getKey()
1783 || t.Kind == Token::TK_Error) { in getKey()
1786 if (t.Kind == Token::TK_Key) in getKey()
1791 Token &t = peekNext(); in getKey()
1792 if (t.Kind == Token::TK_BlockEnd || t.Kind == Token::TK_Value) { in getKey()
1809 Token &t = peekNext(); in getValue()
1810 if ( t.Kind == Token::TK_BlockEnd in getValue()
1811 || t.Kind == Token::TK_FlowMappingEnd in getValue()
1812 || t.Kind == Token::TK_Key in getValue()
1813 || t.Kind == Token::TK_FlowEntry in getValue()
1814 || t.Kind == Token::TK_Error) { in getValue()
1818 if (t.Kind != Token::TK_Value) { in getValue()
1826 Token &t = peekNext(); in getValue()
1827 if (t.Kind == Token::TK_BlockEnd || t.Kind == Token::TK_Key) { in getValue()
1849 Token T = peekNext(); in increment()
1850 if (T.Kind == Token::TK_Key || T.Kind == Token::TK_Scalar) { in increment()
1855 case Token::TK_BlockEnd: in increment()
1862 case Token::TK_Error: in increment()
1868 case Token::TK_FlowEntry: in increment()
1872 case Token::TK_FlowMappingEnd: in increment()
1874 case Token::TK_Error: in increment()
1897 Token T = peekNext(); in increment()
1900 case Token::TK_BlockEntry: in increment()
1908 case Token::TK_BlockEnd: in increment()
1916 case Token::TK_Error: in increment()
1922 case Token::TK_BlockEntry: in increment()
1931 case Token::TK_Error: in increment()
1937 case Token::TK_FlowEntry: in increment()
1942 case Token::TK_FlowSequenceEnd: in increment()
1944 case Token::TK_Error: in increment()
1949 case Token::TK_StreamEnd: in increment()
1950 case Token::TK_DocumentEnd: in increment()
1951 case Token::TK_DocumentStart: in increment()
1977 expectToken(Token::TK_DocumentStart); in Document()
1978 Token &T = peekNext(); in Document()
1979 if (T.Kind == Token::TK_DocumentStart) in Document()
1989 Token &T = peekNext(); in skip()
1990 if (T.Kind == Token::TK_StreamEnd) in skip()
1992 if (T.Kind == Token::TK_DocumentEnd) { in skip()
1999 Token &Document::peekNext() { in peekNext()
2003 Token Document::getNext() { in getNext()
2007 void Document::setError(const Twine &Message, Token &Location) const { in setError()
2016 Token T = peekNext(); in parseBlockNode()
2018 Token AnchorInfo; in parseBlockNode()
2021 case Token::TK_Alias: in parseBlockNode()
2024 case Token::TK_Anchor: in parseBlockNode()
2025 if (AnchorInfo.Kind == Token::TK_Anchor) { in parseBlockNode()
2032 case Token::TK_Tag: in parseBlockNode()
2041 case Token::TK_BlockEntry: in parseBlockNode()
2048 case Token::TK_BlockSequenceStart: in parseBlockNode()
2054 case Token::TK_BlockMappingStart: in parseBlockNode()
2060 case Token::TK_FlowSequenceStart: in parseBlockNode()
2066 case Token::TK_FlowMappingStart: in parseBlockNode()
2072 case Token::TK_Scalar: in parseBlockNode()
2078 case Token::TK_Key: in parseBlockNode()
2084 case Token::TK_DocumentStart: in parseBlockNode()
2085 case Token::TK_DocumentEnd: in parseBlockNode()
2086 case Token::TK_StreamEnd: in parseBlockNode()
2091 case Token::TK_Error: in parseBlockNode()
2101 Token T = peekNext(); in parseDirectives()
2102 if (T.Kind == Token::TK_TagDirective) { in parseDirectives()
2105 } else if (T.Kind == Token::TK_VersionDirective) { in parseDirectives()
2115 Token T = getNext(); in expectToken()