/aosp_15_r20/external/javaparser/javaparser-core-testing-bdd/src/test/resources/com/github/javaparser/ |
H A D | comment_attribution_scenarios.story | 1 Scenario: A Class With Line Comments is processed by the Java Parser 4 package japa.parser.comments; 9 // first comment 10 int a=0; // second comment 11 // third comment 12 // fourth comment 15 When the class is parsed by the Java parser 26 Scenario: A Class With Line Comments is processed by the Java Parser 29 package japa.parser.comments; 33 //a first comment floating in the class [all …]
|
H A D | comment_parsing_scenarios.story | 1 Scenario: A Class With Line Comments is processed by the Comments Parser 4 package japa.parser.comments; 9 // first comment 10 int a=0; // second comment 11 // third comment 12 // fourth comment 15 When the class is parsed by the comment parser 17 Then line comment 1 is " first comment" 18 Then line comment 2 is " second comment" 19 Then line comment 3 is " third comment" [all …]
|
/aosp_15_r20/external/snakeyaml/src/test/java/org/yaml/snakeyaml/comment/ |
H A D | ParserWithCommentEnabledTest.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 14 package org.yaml.snakeyaml.comment; 24 import org.yaml.snakeyaml.parser.Parser; 25 import org.yaml.snakeyaml.parser.ParserImpl; 45 private void assertEventListEquals(List<ID> expectedEventIdList, Parser parser) { in assertEventListEquals() argument 47 parser.checkEvent(expectedEventId); in assertEventListEquals() 48 Event event = parser.getEvent(); in assertEventListEquals() 60 private void printEventList(Parser parser) { in printEventList() argument 61 for (Event event = parser.getEvent(); event != null; event = parser.getEvent()) { in printEventList() 67 private Parser createParser(String data) { in createParser() [all …]
|
H A D | ProblematicYamlTest.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 14 package org.yaml.snakeyaml.comment; 31 import org.yaml.snakeyaml.parser.Parser; 32 import org.yaml.snakeyaml.parser.ParserImpl; 58 List<CommentType> expectedCommentTypeList, Parser parser) { in assertEventListEquals() argument 61 parser.checkEvent(expectedEventId); in assertEventListEquals() 62 Event event = parser.getEvent(); in assertEventListEquals() 68 + (event.getEventId() == ID.Comment ? " " + ((CommentEvent) event).getCommentType() in assertEventListEquals() 71 if (event.getEventId() == ID.Comment) { in assertEventListEquals() 79 private void printEventList(Parser parser) { in printEventList() argument [all …]
|
/aosp_15_r20/frameworks/base/tools/aapt2/ |
H A D | ResourceParser.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 22 #include <android-base/logging.h> 44 constexpr const char* kPublicGroupTag = "public-group"; 45 constexpr const char* kStagingPublicGroupTag = "staging-public-group"; 46 constexpr const char* kStagingPublicGroupFinalTag = "staging-public-group-final"; 51 // Returns true if the element is <skip> or <eat-comment> and can be safely ignored. 53 return ns.empty() && (name == "skip" || name == "eat-comment"); in ShouldIgnoreElement() 115 std::string comment; member 123 StringPiece trimmed_comment = util::TrimWhitespace(res->comment); in AddResourcesToTable() 124 if (trimmed_comment.size() != res->comment.size()) { in AddResourcesToTable() [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/go/doc/comment/testdata/ |
D | doclink.txt | 1 -- input -- 2 In this package, see [Doc] and [Parser.Parse]. 4 See also the [comment] package, 5 especially [comment.Doc] and [comment.Parser.Parse]. 6 -- gofmt -- 7 In this package, see [Doc] and [Parser.Parse]. 9 See also the [comment] package, 10 especially [comment.Doc] and [comment.Parser.Parse]. 11 -- text -- 12 In this package, see Doc and Parser.Parse. There is no [Undef] or [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/go/parser/ |
D | parser.go | 2 // Use of this source code is governed by a BSD-style 5 // Package parser implements a parser for Go source files. Input may be 8 // parser is invoked through one of the Parse* functions. 10 // The parser accepts a larger language than is syntactically permitted by 16 package parser package 28 // The parser structure holds the parser's internal state. 29 type parser struct { struct 41 leadComment *ast.CommentGroup // last lead comment 42 lineComment *ast.CommentGroup // last line comment 44 goVersion string // minimum Go version found in //go:build comment [all …]
|
/aosp_15_r20/external/spdx-tools/rdfloader/parser2v3/ |
H A D | parse_license_test.go | 1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 10 gordfParser "github.com/spdx/gordf/rdfloader/parser" 21 parser, _ := parserFromBodyContent(``) 26 lic, err := parser.getAnyLicenseFromNode(inputNode) 38 parser, _ = parserFromBodyContent(` 41 <spdx:member rdf:resource="http://spdx.org/licenses/LGPL-2.0"/> 44 inputNode = parser.gordfParserObj.Triples[0].Subject 45 lic, err = parser.getAnyLicenseFromNode(inputNode) 57 parser, _ = parserFromBodyContent(` 60 <spdx:member rdf:resource="http://spdx.org/licenses/LGPL-2.0"/> [all …]
|
H A D | parse_package_test.go | 1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 9 gordfParser "github.com/spdx/gordf/rdfloader/parser" 10 "github.com/spdx/tools-golang/spdx/common" 11 "github.com/spdx/tools-golang/spdx/v2_3" 27 // TestCase 2: lower-case noassertion must also set the 92 // TestCase 2: lower-case noassertion must also set the 145 var parser *rdfParser2_3 151 parser, _ = parserFromBodyContent(` 158 node = parser.gordfParserObj.Triples[0].Subject 160 err = parser.setPackageVerificationCode(pkg, node) [all …]
|
/aosp_15_r20/external/spdx-tools/rdfloader/parser2v2/ |
H A D | parse_license_test.go | 1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 10 gordfParser "github.com/spdx/gordf/rdfloader/parser" 21 parser, _ := parserFromBodyContent(``) 26 lic, err := parser.getAnyLicenseFromNode(inputNode) 38 parser, _ = parserFromBodyContent(` 41 <spdx:member rdf:resource="http://spdx.org/licenses/LGPL-2.0"/> 44 inputNode = parser.gordfParserObj.Triples[0].Subject 45 lic, err = parser.getAnyLicenseFromNode(inputNode) 57 parser, _ = parserFromBodyContent(` 60 <spdx:member rdf:resource="http://spdx.org/licenses/LGPL-2.0"/> [all …]
|
H A D | parse_package_test.go | 1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 9 gordfParser "github.com/spdx/gordf/rdfloader/parser" 10 "github.com/spdx/tools-golang/spdx/common" 11 "github.com/spdx/tools-golang/spdx/v2_2" 27 // TestCase 2: lower-case noassertion must also set the 92 // TestCase 2: lower-case noassertion must also set the 145 var parser *rdfParser2_2 151 parser, _ = parserFromBodyContent(` 158 node = parser.gordfParserObj.Triples[0].Subject 160 err = parser.setPackageVerificationCode(pkg, node) [all …]
|
/aosp_15_r20/external/mesa3d/src/compiler/glsl/glcpp/ |
H A D | glcpp-lex.l | 30 #include "glcpp-parse.h" 45 if (parser->has_new_line_number) \ 46 yylineno = parser->new_line_number; \ 47 if (parser->has_new_source_number) \ 48 yylloc->source = parser->new_source_number; \ 49 yylloc->first_column = yycolumn + 1; \ 50 yylloc->first_line = yylloc->last_line = yylineno; \ 52 yylloc->last_column = yycolumn + 1; \ 53 parser->has_new_line_number = 0; \ 54 parser->has_new_source_number = 0; \ [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/go/printer/testdata/ |
D | parser.go | 2 // Use of this source code is governed by a BSD-style 5 // Package parser implements a parser for Go source files. Input may be 8 // parser is invoked through one of the Parse* functions. 10 package parser package 21 // parser functionality. 30 // The parser structure holds the parser's internal state. 31 type parser struct { struct 43 leadComment *ast.CommentGroup // last lead comment 44 lineComment *ast.CommentGroup // last line comment 48 tok token.Token // one token look-ahead [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/go/printer/ |
D | printer_test.go | 2 // Use of this source code is governed by a BSD-style 13 "go/parser" 47 f, err := parser.ParseFile(fset, "", src, parser.ParseComments) 75 if _, err := parser.ParseFile(fset, "", res, parser.ParseComments); err != nil { 76 return nil, fmt.Errorf("re-parse: %s\n%s", err, buf.Bytes()) 153 cc <- 0 158 case <-time.After(10 * time.Second): // plenty of a safety margin, even for very slow machines 161 case <-cc: 171 // Use go test -update to create/update the respective golden files. 216 const src = `// comment 1 [all …]
|
/aosp_15_r20/external/google-cloud-java/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/ |
H A D | CreateCommentRequest.java | 8 * https://www.apache.org/licenses/LICENSE-2.0 78 * Required. The resource name of Case to which this comment should be added. 103 * Required. The resource name of Case to which this comment should be added. 126 private com.google.cloud.support.v2.Comment comment_; 131 * Required. The Comment object to be added to this Case. 134 * <code>.google.cloud.support.v2.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED]; 137 * @return Whether the comment field is set. 147 * Required. The Comment object to be added to this Case. 150 * <code>.google.cloud.support.v2.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED]; 153 * @return The comment. [all …]
|
H A D | ListCommentsResponse.java | 8 * https://www.apache.org/licenses/LICENSE-2.0 74 private java.util.List<com.google.cloud.support.v2.Comment> comments_; 82 * <code>repeated .google.cloud.support.v2.Comment comments = 1;</code> 85 public java.util.List<com.google.cloud.support.v2.Comment> getCommentsList() { in getCommentsList() 95 * <code>repeated .google.cloud.support.v2.Comment comments = 1;</code> 109 * <code>repeated .google.cloud.support.v2.Comment comments = 1;</code> 122 * <code>repeated .google.cloud.support.v2.Comment comments = 1;</code> 125 public com.google.cloud.support.v2.Comment getComments(int index) { in getComments() 135 * <code>repeated .google.cloud.support.v2.Comment comments = 1;</code> 197 private byte memoizedIsInitialized = -1; [all …]
|
H A D | Comment.java | 8 * https://www.apache.org/licenses/LICENSE-2.0 17 // source: google/cloud/support/v2/comment.proto 25 * A comment associated with a support case. 28 * Protobuf type {@code google.cloud.support.v2.Comment} 30 public final class Comment extends com.google.protobuf.GeneratedMessageV3 class 32 // @@protoc_insertion_point(message_implements:google.cloud.support.v2.Comment) 35 // Use Comment.newBuilder() to construct. 36 private Comment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { in Comment() method in Comment 40 private Comment() { in Comment() method in Comment 49 return new Comment(); in newInstance() [all …]
|
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/spirit/include/boost/spirit/home/classic/utility/ |
D | confix.hpp | 2 Copyright (c) 2002-2003 Hartmut Kaiser 29 // Parses a sequence of 3 sub-matches. This class may 33 // subsequence. Example: C-comments: 35 // /* This is a C-comment */ 52 public parser< 85 // Confix parser generator template 92 // If the body parser is an action_parser_category type parser (a parser 98 // where 'body' is the parser matching the body of the confix sequence 102 // start >> (body[f] - close) >> close 107 // re-attaching the actor to the body parser). [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/idlelib/idle_test/ |
D | test_pyparse.py | 19 parser = pyparse.Parser(4, 4) 28 cls.parser = pyparse.Parser(indentwidth=4, tabwidth=4) 32 del cls.parser 35 self.assertEqual(self.parser.indentwidth, 4) 36 self.assertEqual(self.parser.tabwidth, 4) 40 p = self.parser 58 p = self.parser 83 # Passing no value or non-callable should fail (issue 32989). 104 # The non-continuation def line returns 44 (see below). 107 # Code without extra line break in def line - mostly returns the same [all …]
|
/aosp_15_r20/external/pytorch/benchmarks/dynamo/ |
H A D | runner.py | 11 -> python benchmarks/runner.py --suites=torchbench --inference 16 -> python benchmarks/runner.py --print-run-commands --suites=torchbench --inference 19 -> python benchmarks/runner.py --visualize-logs --suites=torchbench --inference 22 -> python benchmarks/runner.py --suites=torchbench --inference --dtypes=float16 66 "ts_nnc": "--training --speedup-ts ", 67 "ts_nvfuser": "--training --nvfuser --speedup-dynamo-ts ", 68 "eager": "--training --backend=eager ", 69 "aot_eager": "--training --backend=aot_eager ", 70 "cudagraphs": "--training --backend=cudagraphs ", 71 "aot_nvfuser": "--training --nvfuser --backend=aot_ts_nvfuser ", [all …]
|
/aosp_15_r20/external/jsoup/src/main/java/org/jsoup/parser/ |
H A D | XmlTreeBuilder.java | 1 package org.jsoup.parser; 5 import org.jsoup.nodes.Comment; 19 import static org.jsoup.parser.Parser.NamespaceXml; 24 * <p>Usage example: {@code Document xmlDoc = Jsoup.parse(html, baseUrl, Parser.xmlParser());}</p> 34 protected void initialiseParse(Reader input, String baseUri, Parser parser) { in initialiseParse() argument 35 super.initialiseParse(input, baseUri, parser); in initialiseParse() 44 return parse(input, baseUri, new Parser(this)); in parse() 48 return parse(new StringReader(input), baseUri, new Parser(this)); in parse() 64 // start tag, end tag, doctype, comment, character, eof in process() 72 case Comment: in process() [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/test/ |
D | test_xml_etree.py | 5 # For this purpose, the module-level "ET" symbol is temporarily 6 # monkey-patched when running the "test_xml_etree_c" test suite. 33 # pyET is the pure-Python implementation. 42 SIMPLE_XMLFILE.encode("utf-8") 45 SIMPLE_NS_XMLFILE = findfile("simple-ns.xml", subdir="xmltestdata") 97 <!ENTITY % user-entities SYSTEM 'user-entities.xml'> 98 %user-entities; 105 <!ENTITY entity SYSTEM "file:///non-existing-file.xml"> 111 <?xml version="1.0" encoding="UTF-8"?> 180 raise support.TestFailed("Failed to round-trip %r from %r to %r" [all …]
|
D | test_pulldom.py | 15 # self-closing tag: 18 <!-- A comment --> 30 # This just tests that parsing from a stream works. Actual parser 60 # XXX - A comment should be reported here! 61 # self.assertEqual(pulldom.COMMENT, evt) 62 # Line break after swallowed comment: 116 # Loop until we get to the next start-element: 134 self.assertIsNone(items.parser) 139 """PullDOM does not receive "comment" events.""" 142 if evt == pulldom.COMMENT: [all …]
|
/aosp_15_r20/external/expat/expat/tests/ |
H A D | acc_tests.c | 7 |_| XML parser 9 Copyright (c) 2001-2006 Fred L. Drake, Jr. <[email protected]> 11 Copyright (c) 2005-2007 Steven Solie <[email protected]> 12 Copyright (c) 2005-2012 Karl Waclawek <[email protected]> 13 Copyright (c) 2016-2024 Sebastian Pipping <[email protected]> 14 Copyright (c) 2017-2022 Rhodri James <[email protected]> 17 Copyright (c) 2018 Marco Maggi <marco.maggi-[email protected]> 91 {"<!-- Comment --><e><!-- Comment --></e>", NULL, NULL, 0}, in START_TEST() 94 {"<?xml-stylesheet type=\"text/xsl\" href=\"https://domain.invalid/\" media=\"all\"?><e/>", in START_TEST() 105 /* The following is the essence of this OSS-Fuzz finding: in START_TEST() [all …]
|
/aosp_15_r20/external/python/cpython2/Doc/library/ |
D | htmlparser.rst | 2 :mod:`HTMLParser` --- Simple HTML and XHTML parser 6 :synopsis: A simple parser that can handle HTML and XHTML. 10 The :mod:`HTMLParser` module has been renamed to :mod:`html.parser` in Python 23 -------------- 26 parsing text files formatted in HTML (HyperText Mark-up Language) and XHTML. 27 Unlike the parser in :mod:`htmllib`, this parser is not based on the SGML parser 40 Unlike the parser in :mod:`htmllib`, this parser does not check that end tags 41 match start tags or call the end-tag handler for elements which are closed 56 Example HTML Parser Application 57 ------------------------------- [all …]
|