Searched refs:new_token (Results 1 – 7 of 7) sorted by relevance
/external/antlr/antlr-3.4/runtime/Ruby/test/unit/ |
D | test-trees.rb | 163 r0 = new_node new_token(101) 164 r1 = new_node new_token(102) 166 r1.add_child(new_node new_token(103)) 167 r2 = new_node new_token(106) 168 r2.add_child new_node( new_token 107 ) 170 r0.add_child new_node( new_token 104 ) 171 r0.add_child new_node( new_token 105 ) 189 r0 = new_node new_token(101) 190 r1 = new_node new_token(102) 192 r1.add_child new_node( new_token 103 ) [all …]
|
D | test-streams.rb | 264 @source2.tokens << new_token( 10, :channel => ANTLR3::HIDDEN ) << new_token( 11 ) 284 @source.tokens << new_token(12) 292 @source.tokens << new_token(12, :channel => ANTLR3::HIDDEN_CHANNEL) << 293 new_token(13) 300 @source.tokens << new_token(12) << 301 new_token(13, :channel => ANTLR3::HIDDEN_CHANNEL) 309 @source.tokens << new_token(12) << new_token(13) 318 @source.tokens << new_token(12) << new_token(13) 328 @source.tokens << new_token(12) << new_token(13) 335 @source.tokens << new_token(10) << [all …]
|
/external/chromium-trace/catapult/third_party/closure_linter/closure_linter/ |
D | tokenutil.py | 249 def InsertTokenBefore(new_token, token): argument 256 new_token.next = token 257 new_token.previous = token.previous 259 new_token.metadata = copy.copy(token.metadata) 261 if new_token.IsCode(): 266 following_token.metadata.last_code = new_token 269 token.previous = new_token 270 if new_token.previous: 271 new_token.previous.next = new_token 273 if new_token.start_index is None: [all …]
|
D | tokenutil_test.py | 172 new_token = javascripttokens.JavaScriptToken( 190 tokenutil.InsertTokenAfter(new_token, existing_token1) 192 tokenutil.InsertTokenBefore(new_token, existing_token2) 194 self.assertEquals(existing_token1, new_token.previous) 195 self.assertEquals(existing_token2, new_token.next) 197 self.assertEquals(new_token, existing_token1.next) 198 self.assertEquals(new_token, existing_token2.previous) 200 self.assertEquals(existing_token1, new_token.metadata.last_code) 201 self.assertEquals(new_token, existing_token2.metadata.last_code) 204 self.assertEquals(3, new_token.start_index)
|
D | error_fixer.py | 288 new_token = Token('{', Type.DOC_START_BRACE, start_token.line, 290 tokenutil.InsertTokenAfter(new_token, start_token.previous) 291 token.attached_object.type_start_token = new_token 292 fixed_tokens.append(new_token) 316 new_token = Token('}', Type.DOC_END_BRACE, last_type.line, 318 tokenutil.InsertTokenAfter(new_token, last_type) 319 token.attached_object.type_end_token = new_token 320 fixed_tokens.append(new_token) 340 new_token = Token(token.string, token.type, insertion_point.line, 342 tokenutil.InsertTokenAfter(new_token, space) [all …]
|
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/ |
D | html5parser.py | 167 new_token = token 168 while new_token is not None: 173 type = new_token["type"] 176 self.parseError(new_token["data"], new_token.get("datavars", {})) 177 new_token = None 195 new_token = phase.processCharacters(new_token) 197 new_token = phase.processSpaceCharacters(new_token) 199 new_token = phase.processStartTag(new_token) 201 new_token = phase.processEndTag(new_token) 203 new_token = phase.processComment(new_token) [all …]
|
/external/mesa3d/src/glsl/glcpp/ |
D | glcpp-parse.y | 838 token_t *new_token = ralloc (copy, token_t); in _token_list_copy() local 839 *new_token = *node->token; in _token_list_copy() 840 _token_list_append (copy, new_token); in _token_list_copy() 1466 token_t *new_token; in _glcpp_parser_expand_function() local 1468 new_token = _token_create_ival (substituted, in _glcpp_parser_expand_function() 1471 _token_list_append (substituted, new_token); in _glcpp_parser_expand_function()
|