Home
last modified time | relevance | path

Searched +full:parse +full:- +full:imports (Results 1 – 25 of 1118) sorted by relevance

12345678910>>...45

/aosp_15_r20/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/
H A Dparse_html_deps_unittest.py3 # Use of this source code is governed by a BSD-style license that can be
17 module = parser.Parse('')
21 self.assertEquals([], module.imports)
25 module = parser.Parse(None)
29 self.assertEquals([], module.imports)
42 module = parser.Parse(html)
46 self.assertEquals([], module.imports)
55 <link rel="import" href="x-foo.html">
61 module = parser.Parse(html)
65 self.assertEquals(['x-foo.html'], module.imports)
[all …]
/aosp_15_r20/external/angle/build/rust/chromium_prelude/
H A Dimport_attribute.rs2 // Use of this source code is governed by a BSD-style license that can be
7 use syn::parse::{Parse, ParseStream};
11 pub fn import(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in import()
12 let imports = parse_macro_input!(input as ImportList).imports; in import() localVariable
15 for i in imports { in import()
27 imports: Vec<Import>, field
42 fn parse(s: &str, span: Span) -> Result<GnTarget, String> { in parse() method
85 impl Parse for ImportList {
86 fn parse(input: ParseStream) -> syn::Result<Self> { in parse() method
87 let mut imports: Vec<Import> = Vec::new(); in parse() localVariable
[all …]
/aosp_15_r20/external/cronet/build/rust/chromium_prelude/
H A Dimport_attribute.rs2 // Use of this source code is governed by a BSD-style license that can be
7 use syn::parse::{Parse, ParseStream};
11 pub fn import(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in import()
12 let imports = parse_macro_input!(input as ImportList).imports; in import() localVariable
15 for i in imports { in import()
27 imports: Vec<Import>, field
42 fn parse(s: &str, span: Span) -> Result<GnTarget, String> { in parse() method
85 impl Parse for ImportList {
86 fn parse(input: ParseStream) -> syn::Result<Self> { in parse() method
87 let mut imports: Vec<Import> = Vec::new(); in parse() localVariable
[all …]
/aosp_15_r20/external/bazelbuild-rules_go/go/tools/builders/
H A Dgenerate_test_main.go7 http://www.apache.org/licenses/LICENSE-2.0
24 // 3. A generated main package that imports both packages and initializes the
66 Imports []*Import member
92 // is somewhat unclear about-- it only clearly guarantees that imported packages
113 {{range $p := .Imports}}
240 imports := multiFlag{}
248 flags.Var(&imports, "import", "Packages to import")
250 if err := flags.Parse(args); err != nil {
258 for _, imp := range imports {
304 parse, err := parser.ParseFile(testFileSet, f.filename, nil, parser.ParseComments)
[all …]
H A Dgenerate_nogo_main.go7 http://www.apache.org/licenses/LICENSE-2.0
38 {{- if .NeedRegexp }}
40 {{- end}}
41 {{- range $import := .Imports}}
43 {{- end}}
48 {{- range $import := .Imports}}
50 {{- end}}
55 {{- range $name, $config := .Configs}}
57 {{- if $config.AnalyzerFlags }}
59 {{- range $flagKey, $flagValue := $config.AnalyzerFlags}}
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/go/internal/vcs/
Dvcs.go2 // Use of this source code is governed by a BSD-style
66 // vcs-test.golang.org.
72 // VCSTestHosts is the set of hosts supported by the vcs-test server.
89 u, err := urlpkg.Parse(repo)
107 // colon-separated list of schemes that are allowed to be used with git
160 CreateCmd: []string{"clone -U -- {repo} {dir}"},
172 TagSyncCmd: []string{"update -r {tag}"},
176 PingCmd: "identify -- {scheme}://{repo}",
191 out, err := vcsHg.runOutputVerboseOnly(rootDir, `log -l1 -T {node}:{date|hgdate}`)
250 …CreateCmd: []string{"clone -- {repo} {dir}", "-go-internal-cd {dir} submodule update --init --re…
[all …]
/aosp_15_r20/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
H A Dtranslate.py2 # Use of this source code is governed by a BSD-style license that can be
5 """Convert parse tree to AST.
7 This module converts the parse tree to the AST we use for code generation. The
9 representation of a mojom file. When called it's assumed that all imports have
17 from mojom.parse import ast
69 base_kind = _MapKind(kind[0:-1])
71 # cross-reference is established.
73 if re.split('[^a-z]', base_kind, 1)[0] not in reference_kinds:
80 return 'm[' + _MapKind(kind[lbracket+1:-1]) + '][' + _MapKind(value) + ']'
84 return 'a' + kind[lbracket+1:-1] + ':' + _MapKind(typename)
[all …]
/aosp_15_r20/external/golang-protobuf/internal/cmd/generate-types/
H A Dmain.go2 // Use of this source code is governed by a BSD-style
5 //go:generate go run . -execute
34 flag.Parse()
38 out, err := exec.Command("git", "rev-parse", "--show-toplevel").CombinedOutput()
55 out, err := exec.Command("git", "rev-parse", "--show-toplevel").CombinedOutput()
96 var descListTypesTemplate = template.Must(template.New("").Parse(`
97 {{- range .}}
105 {{- if (eq . "Field")}}
108 {{- end}}
109 {{- if .NumberExpr}}
[all …]
/aosp_15_r20/build/soong/cmd/go2bp/
H A Dgo2bp.go7 // http://www.apache.org/licenses/LICENSE-2.0
68 ret = r.repl + "-" + strings.TrimPrefix(name, prefix)
71 return strings.ReplaceAll(ret, "/", "-")
112 Imports []string member
170 // AllImports combines Imports and TestImports, as blueprint does not differentiate these.
172 imports := append([]string(nil), g.Imports...)
173 imports = append(imports, g.TestImports...)
175 if len(imports) == 0 {
179 // Sort and de-duplicate
180 sort.Strings(imports)
[all …]
/aosp_15_r20/external/libchrome/mojo/public/tools/bindings/
H A Dmojom_bindings_generator.py3 # Use of this source code is governed by a BSD-style license that can be
33 # Manually check for the command-line flag. (This isn't quite right, since it
34 # ignores, e.g., "--", but it's close enough.)
35 if "--use_bundled_pylibs" in sys.argv[1:]:
46 from mojom.parse.conditional_features import RemoveDisabledDefinitions
47 from mojom.parse.parser import Parse
74 """Make a (human-readable) message listing a chain of imports. (Returned
94 RelativePath with first file found, or an arbitrary non-existent file
116 # to be very strong, cryptographically. It just needs to be non-trivial
122 # Take the first 4 bytes as a little-endian uint32.
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/go/types/
Dgotype.go2 // Use of this source code is governed by a BSD-style
10 The gotype command, like the front-end of a Go compiler, parses and
11 type-checks a single Go package. Errors are reported if the analysis
12 fails; otherwise gotype is quiet (unless -v is set).
18 that directory, comprising a single package. Use -t to include the
19 (in-package) _test.go files. Use -x to type check only external
25 Imports are processed by importing directly from the source of
27 installed packages (by setting -c to the respective compiler).
29 The -c flag must be set to a compiler ("gc", "gccgo") when type-
30 checking packages containing imports with relative import paths
[all …]
/aosp_15_r20/external/javaparser/javaparser-core-testing-bdd/src/test/resources/com/github/javaparser/
H A Dpretty_printing_scenarios.story19 Runnable runnable = ()-> System.out.println("running");
20 Consumer<Integer> consumer = i->{ i+=1; System.out.println(i);};
26 Runnable runnable = () -> System.out.println("running");
28 Consumer<Integer> consumer = i -> {
164 Scenario: A multi-catch is printed correctly
193 Scenario: we can parse blocks
206 Scenario: we can parse statements
215 Scenario: we can parse static on demand imports
222 Scenario: we can parse static type imports
229 Scenario: we can parse on demand imports
[all …]
/aosp_15_r20/development/tools/external_crates/test_mapping/src/
H A Djson.rs7 // http://www.apache.org/licenses/LICENSE-2.0
26 pub imports: Vec<TestMappingPath>, field
29 #[serde(default, skip_serializing_if = "Vec::is_empty", rename = "presubmit-rust")]
46 pub fn parse(mut contents: String) -> Result<TestMappingJson, TestMappingError> { in parse() method
48 … Comments are not part of the JSON spec (although they are often used), and Serde won't parse them. in parse()
53 pub fn is_empty(&self) -> bool { in is_empty()
54 self.imports.is_empty() in is_empty()
63 pub fn convert_postsubmit_tests(&mut self) -> bool { in convert_postsubmit_tests()
73 pub fn add_new_tests_to_postsubmit(&mut self, tests: &BTreeSet<String>) -> bool { in add_new_tests_to_postsubmit()
83 fn all_test_names(&self) -> BTreeSet<String> { in all_test_names()
[all …]
/aosp_15_r20/system/tools/hidl/lint/test/
Dmain.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
19 #include <hidl-util/StringHelper.h>
38 char* argv[2] = {const_cast<char*>("hidl-lint"), in SetUp()
39 const_cast<char*>("-rlint_test:system/tools/hidl/lint/test/interfaces")}; in SetUp()
47 if (!FQName::parse(name, &fqName)) { in getLintsForHal()
48 FAIL() << "Could not parse fqName: " << name; in getLintsForHal()
61 AST* ast = coordinator.parse(fqName); in getLintsForHal()
63 FAIL() << "Could not parse " << fqName.name() << ". Aborting."; in getLintsForHal()
66 LintRegistry::get()->runAllLintFunctions(*ast, errors); in getLintsForHal()
114 EXPECT_LINT("[email protected]::IMixed", "IMixed has both oneway and non-oneway methods."); in TEST_F()
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/go/internal/modindex/
Dread.go2 // Use of this source code is governed by a BSD-style
31 "cmd/go/internal/imports"
59 // the cost to detect changes and re-index whenever they occur, so just
62 // Note that this is true even for modules in GOROOT/src: non-release builds
66 // "gomote push" as of 2022-06-15). (Release builds shouldn't have
94 cutoff := time.Now().Add(-modTimeCutoff)
302 if len(d.str) == 0 || d.str[0] != 0 || d.str[len(d.str)-1] != 0xFF {
307 if n < 0 || n > (len(d.data)-8)/8 {
326 return nil, fmt.Errorf("corrupt single-package index")
391 // In build.go, p.Root should only be set in the non-local-import case, or in
[all …]
/aosp_15_r20/system/tools/hidl/
DAST.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
29 #include <android-base/logging.h>
30 #include <hidl-util/FQName.h>
31 #include <hidl-util/Formatter.h>
32 #include <hidl-util/StringHelper.h>
46 Location::startOf(coordinator->makeRelative(fileHash->getPath())), in AST()
67 return mFileHash->getPath(); in getFilename()
111 err = setParseStage(Type::ParseStage::PARSE, Type::ParseStage::POST_PARSE); in postParse()
146 ce->setPostParseCompleted(); in postParse()
162 [&](Type* type) -> status_t { in constantExpressionRecursivePass()
[all …]
/aosp_15_r20/system/tools/aidl/
Daidl_language_y.yy8 * http://www.apache.org/licenses/LICENSE-2.0
22 #include <android-base/parseint.h>
50 #define lex_scanner ps->Scanner()
54 %initial-action {
56 const_cast<std::string *>(&ps->FileName());
59 %parse-param { Parser* ps }
60 %lex-param { void *lex_scanner }
62 %glr-parser
65 %expect-rr 0
67 %define parse.error verbose
[all …]
/aosp_15_r20/external/cronet/build/
H A Dgn_helpers.py2 # Use of this source code is governed by a BSD-style license that can be
47 for decoded_ch in s.encode('utf-8'): # str in Python 2, bytes in Python 3.
62 pretty: Whether to pretty print. If true, then non-empty lists are rendered
132 # Adds whitespaces so non-empty lists can span multiple lines, with indent.
143 level -= 1
157 # Add terminating '\n' for dict |value| or multi-line output.
166 For details on supported types see GNValueParser.Parse() below.
170 args = [ "--values=$something" ]
172 --values="[ \"file1\", \"file2\" ]"
176 You can parse this into a Python list using GN rules with:
[all …]
/aosp_15_r20/external/angle/build/
H A Dgn_helpers.py2 # Use of this source code is governed by a BSD-style license that can be
46 for decoded_ch in s.encode('utf-8'): # str in Python 2, bytes in Python 3.
61 pretty: Whether to pretty print. If true, then non-empty lists are rendered
131 # Adds whitespaces so non-empty lists can span multiple lines, with indent.
142 level -= 1
156 # Add terminating '\n' for dict |value| or multi-line output.
165 For details on supported types see GNValueParser.Parse() below.
169 args = [ "--values=$something" ]
171 --values="[ \"file1\", \"file2\" ]"
175 You can parse this into a Python list using GN rules with:
[all …]
/aosp_15_r20/external/bazel-skylib/gazelle/bzl/
H A Dgazelle.go7 http://www.apache.org/licenses/LICENSE-2.0
20 // https://github.com/bazelbuild/bazel-skylib.
35 "github.com/bazelbuild/bazel-gazelle/config"
36 "github.com/bazelbuild/bazel-gazelle/label"
37 "github.com/bazelbuild/bazel-gazelle/language"
38 "github.com/bazelbuild/bazel-gazelle/pathtools"
39 "github.com/bazelbuild/bazel-gazelle/repo"
40 "github.com/bazelbuild/bazel-gazelle/resolve"
41 "github.com/bazelbuild/bazel-gazelle/rule"
78 // https://pkg.go.dev/github.com/bazelbuild/bazel-gazelle/resolve?tab=doc#Resolver
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/go/build/
Ddeps_test.go2 // Use of this source code is governed by a BSD-style
6 // some low-level packages do not have new dependencies added.
37 // All-caps names are pseudo-names for specific points
71 # RUNTIME is the core runtime group of packages, all of them very light-weight.
274 < text/template/parse;
276 net/url, text/template/parse
334 # that is low-enough level to be used by go/types.
374 C !< fmt, go/types, CRYPTO-MATH, log/slog;
396 # This is a long-looking list but most of these
414 # NET is net plus net-helper packages.
[all …]
/aosp_15_r20/external/python/dateutil/dateutil/test/
Dtest_imports.py17 """ Test that dateutil.easter-related imports work properly """
30 """ Test that dateutil.parser-related imports work properly """
39 from dateutil.parser import parse
45 for var in (parse, parserinfo, parser):
50 """ Test that dateutil.relativedelta-related imports work properly """
70 """ Test that dateutil.rrule related imports work properly """
99 """ Test that dateutil.tz related imports work properly """
134 """ Test that dateutil.tzwin related imports work properly """
/aosp_15_r20/prebuilts/go/linux-x86/src/sort/
Dgen_sort_variants.go2 // Use of this source code is governed by a BSD-style
9 // When passed the -generic flag it generates generic variants of sorting;
10 // otherwise it generates the non-generic variants used by the sort package.
35 // Imports is the imports needed for this package.
36 Imports string member
76 Imports: "",
95 Imports: "",
117 Imports: "import \"cmp\"\n",
157 Imports: "import \"golang.org/x/exp/constraints\"\n",
196 flag.Parse()
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/go/doc/
Ddoc.go2 // Use of this source code is governed by a BSD-style
21 Imports []string member
90 // Any note with a marker of 2 or more upper case [A-Z] letters and a uid of
103 // AllDecls says to extract documentation for all package-level
112 // the AST such as function bodies were nil-ed out to save memory in
130 Imports: sortedKeys(r.imports),
204 // control low-level aspects of the documentation extraction behavior.
248 // ast.Importer implementation is made below. It might be possible to short-circuit and simplify.
261 func simpleImporter(imports map[string]*ast.Object, path string) (*ast.Object, error) {
262 pkg := imports[path]
[all …]
/aosp_15_r20/packages/services/Car/tools/hidl_parser/
Dparser.py9 # http://www.apache.org/licenses/LICENSE-2.0
19 # This script can parse HIDL files and generate a parse tree.
20 # To use, import and call parse("path/to/file.hal")
22 # - header: an instance of Header
23 # - enums: a dictionary of EnumDecl objects by name
24 # - structs: a dictionary of StructDecl objects by name
38 t_NUMBER = r'[0-9]+'
39 t_HEX = r'0[x|X][0-9A-Fa-f]+'
56 t_VERSION = r'@[0-9].[0-9]'
61 r'[a-zA-Z_][a-zA-Z_0-9]*'
[all …]

12345678910>>...45