| /third_party/rust/rust/src/tools/clippy/tests/ui/ |
| D | suspicious_doc_comments.stderr | 1 error: this is an outer doc comment and does not apply to the parent module or crate 2 --> $DIR/suspicious_doc_comments.rs:6:1 4 LL | ///! Fake module documentation. 7 = note: `-D clippy::suspicious-doc-comments` implied by `-D warnings` 8 help: use an inner doc comment to document the parent module or crate 10 LL | //! Fake module documentation. 13 error: this is an outer doc comment and does not apply to the parent module or crate 14 --> $DIR/suspicious_doc_comments.rs:10:5 16 LL | ///! This module contains useful functions. 19 help: use an inner doc comment to document the parent module or crate [all …]
|
| D | suspicious_doc_comments_unfixable.stderr | 1 error: this is an outer doc comment and does not apply to the parent module or crate 2 --> $DIR/suspicious_doc_comments_unfixable.rs:4:1 10 = note: `-D clippy::suspicious-doc-comments` implied by `-D warnings` 11 help: use an inner doc comment to document the parent module or crate 19 error: this is an outer doc comment and does not apply to the parent module or crate 20 --> $DIR/suspicious_doc_comments_unfixable.rs:10:1 28 help: use an inner doc comment to document the parent module or crate
|
| /third_party/python/Lib/ |
| D | pyclbr.py | 1 """Parse a Python module and describe its classes and functions. 7 readmodule_ex(module, path=None) 8 where module is the name of a Python module, and path is an optional 9 list of directories where the module is to be searched. If present, 12 classes and functions defined in the module (including classes that are 20 module -- name of the module; 21 name -- name of the object; 22 file -- file in which the object is defined; 23 lineno -- line in the file where the object's definition starts; 24 end_lineno -- line in the file where the object's definition ends; [all …]
|
| D | modulefinder.py | 50 # test_modulefinder.py changes file tree contents in a cache-breaking way: 57 raise ImportError("No module named {name!r}".format(name=name), name=name) 85 suffix = os.path.splitext(file_path)[-1] 90 class Module: class 97 # The set of global names that are assigned to in the module. 101 # The set of starimports this module did that could not be 102 # resolved, ie. a starimport from a non-Python module. 106 s = "Module(%r" % (self.__name__,) 146 self.indent = self.indent - 1 162 def import_hook(self, name, caller=None, fromlist=None, level=-1): [all …]
|
| /third_party/python/Doc/library/ |
| D | pyclbr.rst | 1 :mod:`pyclbr` --- Python module browser support 4 .. module:: pyclbr 5 :synopsis: Supports information extraction for a Python module browser. 11 -------------- 13 The :mod:`pyclbr` module provides limited information about the 14 functions, classes, and methods defined in a Python-coded module. The 15 information is sufficient to implement a module browser. The 17 importing the module, so this module is safe to use with untrusted code. 18 This restriction makes it impossible to use this module with modules not 23 .. function:: readmodule(module, path=None) [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/hir-def/src/ |
| D | visibility.rs | 1 //! Defines hir-level representation of visibility (e.g. `pub` and `pub(crate)`). 21 /// `pub(in module)`, `pub(crate)` or `pub(super)`. Also private, which is 23 Module(ModPath), enumerator 29 pub(crate) const fn private() -> RawVisibility { in private() 30 RawVisibility::Module(ModPath::from_kind(PathKind::Super(0))) in private() 36 ) -> RawVisibility { in from_ast() 44 ) -> RawVisibility { in from_ast_with_hygiene() 53 ) -> RawVisibility { in from_ast_with_hygiene_and_default() 65 RawVisibility::Module(path) in from_ast_with_hygiene_and_default() 69 RawVisibility::Module(path) in from_ast_with_hygiene_and_default() [all …]
|
| D | nameres.rs | 1 //! This module implements import-resolution/macro expansion algorithm. 3 //! The result of this module is `DefMap`: a data structure which contains: 6 //! * for each module, a set of items visible in the module (directly declared 17 //! This happens in the `raw` module, which parses a single source file into a 18 //! set of top-level items. Nested imports are desugared to flat imports in this 24 //! This happens in the `collector` module. In this phase, we recursively walk 25 //! tree of modules, collect raw items from submodules, populate module scopes 36 //! record it, by adding an item to current module scope and, if necessary, by 44 //! Macros from other crates (including proc-macros) can be used with 47 //! path and, upon success, we run macro expansion and "collect module" phase on [all …]
|
| D | lib.rs | 96 /// A `ModuleId` that is always a crate's root module. 103 pub fn def_map(&self, db: &dyn db::DefDatabase) -> Arc<DefMap> { in def_map() 107 pub fn krate(self) -> CrateId { in krate() 113 fn from(CrateRootModuleId { krate }: CrateRootModuleId) -> Self { 119 fn from(value: CrateRootModuleId) -> Self { in from() 127 fn try_from(ModuleId { krate, block, local_id }: ModuleId) -> Result<Self, Self::Error> { 140 /// `BlockId` of that block expression. If `None`, this module is part of the crate-level 143 /// The module's ID in its originating `DefMap`. 148 pub fn def_map(&self, db: &dyn db::DefDatabase) -> Arc<DefMap> { in def_map() 155 pub fn krate(&self) -> CrateId { in krate() [all …]
|
| /third_party/rust/rust/compiler/rustc_resolve/src/ |
| D | build_reduced_graph.rs | 1 //! After we obtain a fresh AST fragment from a macro, code in this module helps to integrate 2 //! that fragment into the module structures that are already partially built. 13 use crate::{Determinacy, ExternPreludeEntry, Finalize, Module, ModuleKind, ModuleOrUniformRoot}; 38 for (Module<'a>, ty::Visibility<Id>, Span, LocalExpnId) 40 fn to_name_binding(self, arenas: &'a ResolverArenas<'a>) -> NameBinding<'a> { in to_name_binding() 42 kind: NameBindingKind::Module(self.0), in to_name_binding() 52 fn to_name_binding(self, arenas: &'a ResolverArenas<'a>) -> NameBinding<'a> { in to_name_binding() 64 /// Defines `name` in namespace `ns` of module `parent` to be `def` if it is not yet defined; 66 pub(crate) fn define<T>(&mut self, parent: Module<'a>, ident: Ident, ns: Namespace, def: T) in define() 72 if let Err(old_binding) = self.try_define(parent, key, binding) { in define() [all …]
|
| /third_party/rust/rust/tests/ui/pub/ |
| D | pub-restricted.stderr | 2 --> $DIR/pub-restricted.rs:3:6 5 | ^ help: make this visible only to module `a` with `in`: `in a` 9 `pub(super)`: visible only in the current module's parent 10 `pub(in path::to::module)`: visible only on the specified path 13 --> $DIR/pub-restricted.rs:4:6 16 | ^ help: make this visible only to module `b` with `in`: `in b` 20 `pub(super)`: visible only in the current module's parent 21 `pub(in path::to::module)`: visible only on the specified path 24 --> $DIR/pub-restricted.rs:5:6 27 | ^^^^^^^^ help: make this visible only to module `crate::a` with `in`: `in crate::a` [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/ide-completion/src/completions/ |
| D | mod_.rs | 5 use hir::{Module, ModuleSource}; 18 mod_under_caret: &ast::Module, in complete_mod() argument 19 ) -> Option<()> { in complete_mod() 26 let mut current_module = ctx.module; in complete_mod() 27 // For `mod $0`, `ctx.module` is its parent, but for `mod f$0`, it's `mod f` itself, but we're in complete_mod() 28 // interested in its parent. in complete_mod() 30 if let Some(module) = in complete_mod() 31 ctx.original_token.parent_ancestors().nth(1).and_then(ast::Module::cast) in complete_mod() 33 match ctx.sema.to_def(&module) { in complete_mod() 34 Some(module) if module == current_module => { in complete_mod() [all …]
|
| /third_party/elfutils/libdwfl/ |
| D | core-file.c | 2 Copyright (C) 2008-2010, 2013, 2015 Red Hat, Inc. 49 This implementation is pessimal for non-mmap cases and should 52 elf_begin_rand (Elf *parent, off_t offset, off_t size, off_t *next) in elf_begin_rand() argument 54 if (parent == NULL) in elf_begin_rand() 57 off_t min = (parent->kind == ELF_K_ELF ? in elf_begin_rand() 58 (parent->class == ELFCLASS32 in elf_begin_rand() 60 : parent->kind == ELF_K_AR ? SARMAG in elf_begin_rand() 64 || unlikely (offset >= (off_t) parent->maximum_size)) in elf_begin_rand() 69 if (parent->kind == ELF_K_AR) in elf_begin_rand() 71 /* File size, in ASCII decimal, right-padded with ASCII spaces. in elf_begin_rand() [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/ |
| D | unlinked_file.rs | 19 // Diagnostic: unlinked-file 22 // crates rust-analyzer failed to discover. The file will not have IDE features available. 32 …popups from appearing when there is an autofix. https://github.com/rust-lang/rust-analyzer/issues/… in unlinked_file() 36 "file not included in module tree" in unlinked_file() 49 Diagnostic::new("unlinked-file", message, range) in unlinked_file() 55 fn fixes(ctx: &DiagnosticsContext<'_>, file_id: FileId) -> Option<Vec<Assist>> { in fixes() 56 …// If there's an existing module that could add `mod` or `pub mod` items to include the unlinked f… in fixes() 61 let parent = our_path.parent()?; in fixes() localVariable 63 let (parent, module_name) = match module_name { in fixes() 65 // and take the parent as our to be module name in fixes() [all …]
|
| /third_party/typescript/src/services/ |
| D | importTracker.ts | 67 …statements that directly reference the exporting module, and a list of files that may access the m… 92 // Module augmentations may use this module's exports without importing it. 101 …// This may return duplicates (if there are multiple module declarations in a single source file, … 122 const parent = direct.parent; constant 123 … if (exportKind === ExportKind.ExportEquals && parent.kind === SyntaxKind.VariableDeclaration) { 124 const { name } = parent as VariableDeclaration; 153 … // This is `export * from "foo"`, so imports of this module may import the export too. 161 …rt { foo } from "foo"` and creates an alias symbol, so recursive search will get handle re-exports. 195 // This is a direct import, not import-as-namespace. 210 /** Adds a module and all of its transitive dependencies as possible indirect users. */ [all …]
|
| /third_party/python/Lib/importlib/ |
| D | _bootstrap.py | 3 This module is NOT meant to be directly imported! It has been designed such 6 work. One should use importlib as the public-facing version of this module. 10 # IMPORTANT: Whenever making changes to this module, be sure to run a top-level 11 # `make regen-importlib` followed by `make` in order to get the frozen version 12 # of the module updated. Not doing so will result in the Makefile to fail for 13 # all others who don't have a ./python around to freeze the module 29 # Bootstrap-related code ###################################################### 52 # Module-level locking ######################################################## 54 # A dict mapping module names to weakrefs of _ModuleLock instances 102 Acquire the module lock. If a potential deadlock is detected, [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
| D | GlobalAlias.h | 1 //===-------- llvm/GlobalAlias.h - GlobalAlias class ------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 24 class Module; variable 32 const Twine &Name, Constant *Aliasee, Module *Parent); 38 /// If a parent module is specified, the alias is automatically inserted into 39 /// the end of the specified module's alias list. 42 Constant *Aliasee, Module *Parent); 47 Module *Parent); [all …]
|
| /third_party/python/Doc/reference/ |
| D | import.rst | 10 Python code in one :term:`module` gains access to the code in another module 13 way. Functions such as :func:`importlib.import_module` and built-in 17 named module, then it binds the results of that search to a name in the local 25 A direct call to :func:`__import__` performs only the module search and, if 26 found, the module creation operation. While certain side-effects may occur, 27 such as the importing of parent packages, and the updating of various caches 36 When a module is first imported, Python searches for the module and if found, 37 it creates a module object [#fnmo]_, initializing it. If the named module 39 strategies to search for the named module when the import machinery is 45 of :pep:`302`. There is no longer any implicit import machinery - the full [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/ide-db/src/ |
| D | defs.rs | 6 // FIXME: this badly needs rename/rewrite (matklad, 2020-02-06). 11 Function, GenericParam, HasVisibility, Impl, Label, Local, Macro, Module, ModuleDef, Name, 28 Module(Module), enumerator 48 pub fn canonical_module_path(&self, db: &RootDatabase) -> Option<impl Iterator<Item = Module>> { in canonical_module_path() 49 self.module(db).map(|it| it.path_to_root(db).into_iter().rev()) in canonical_module_path() 52 pub fn krate(&self, db: &RootDatabase) -> Option<Crate> { in krate() 54 Definition::Module(m) => m.krate(), in krate() 55 _ => self.module(db)?.krate(), in krate() 59 pub fn module(&self, db: &RootDatabase) -> Option<Module> { in module() method 60 let module = match self { in module() localVariable [all …]
|
| /third_party/python/Lib/test/test_importlib/import_/ |
| D | test___package__.py | 1 """PEP 366 ("Main module explicit relative imports") specifies the 3 used, when available, to detect which package a module belongs to (instead 15 what package a module belongs to. The basic algorithm is [__package__]:: 18 level -= 1 41 module = self.__import__('', 44 return module 48 module = self.import_module({'__package__': 'pkg.fake'}) 49 self.assertEqual(module.__name__, 'pkg') 55 module = self.import_module({'__name__': 'pkg.fake', 57 self.assertEqual(module.__name__, 'pkg') [all …]
|
| /third_party/glslang/SPIRV/ |
| D | spvIR.h | 3 // Copyright (C) 2015-2018 Google, Inc. 36 // SPIRV-IR 38 // Simple in-memory representation (IR) of SPIRV. Just for holding 40 // - Module, which is a list of 41 // - Function, which is a list of 42 // - Block, which is a list of 43 // - Instruction 64 class Module; variable 91 // SPIR-V IR instruction. 190 // SPIR-V IR block. [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/ |
| D | CompileOnDemandLayer.cpp | 1 //===----- CompileOnDemandLayer.cpp - Lazily emit IR on first call --------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 #include "llvm/IR/Module.h" 21 // Bump the linkage: this global will be provided by the external module. in extractSubModule() 24 // Delete the definition in the source module. in extractSubModule() 37 assert(Aliasee->hasName() && "Anonymous aliasee"); in extractSubModule() 44 F->setName(AliasName); in extractSubModule() 50 G->setName(AliasName); in extractSubModule() 58 NewTSM.withModuleDo([&](Module &M) { in extractSubModule() [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/syntax/src/ |
| D | ast.rs | 44 fn can_cast(kind: SyntaxKind) -> bool in can_cast() 48 fn cast(syntax: SyntaxNode) -> Option<Self> in cast() 52 fn syntax(&self) -> &SyntaxNode; in syntax() 53 fn clone_for_update(&self) -> Self in clone_for_update() 59 fn clone_subtree(&self) -> Self in clone_subtree() 69 fn can_cast(token: SyntaxKind) -> bool in can_cast() 73 fn cast(syntax: SyntaxToken) -> Option<Self> in cast() 77 fn syntax(&self) -> &SyntaxToken; in syntax() 79 fn text(&self) -> &str { in text() 92 fn new(parent: &SyntaxNode) -> Self { in new() [all …]
|
| /third_party/mindspore/mindspore-src/source/docs/api/api_python_en/ |
| D | mindspore.multiprocessing.md | 5 … Its internal implementation inherits from Python native multiprocessing module and overloads some… 9 - When fork occurs, the parent process waits for the internal thread task to finish executing befor… 10 - After fork occurs, the parent process releases the actively held GIL lock. 11 - After fork occurs, the child process releases the actively held GIL lock, then restores and clean… 13 …indspore.multiprocessing is exactly the same as that of using Python native multiprocessing module. 15 …erits from Python native multiprocessing module, its interface usage is fully compatible with the … 65 …module used is not mindspore.multiprocessing, there may be a problem that the child process is stu… 81 print("parent process:ops.log(Tensor(2.0))=", ops.log(Tensor(2.0))) 92 parent process:ops.log(Tensor(2.0))= 0.6931472 96 …ming a computation task, and the child process uses the resources of the parent process to perform… [all …]
|
| /third_party/python/Lib/test/test_importlib/ |
| D | test_namespace_pkgs.py | 15 # need to test when nested, so that the top-level path isn't sys.path 16 # need to test dynamic path detection, both at top-level and nested 87 "<module 'foo' (namespace)>") 141 # the module does not exist, so it cannot be imported 150 with open(module_path, 'w', encoding='utf-8') as file: 153 # the module is not known, so it cannot be imported yet 250 import parent.child.one 251 self.assertEqual(len(parent.__path__), 2) 252 self.assertEqual(len(parent.child.__path__), 2) 253 import parent.child.two [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/hir/src/ |
| D | lib.rs | 1 //! HIR (previously known as descriptors) provides a high-level object oriented 6 //! applied. So, the relation between syntax and HIR is many-to-one. 14 //! Many types are not self-contained, and explicitly use local indexes, arenas, etc. 18 //! <https://www.tedinski.com/2018/02/06/system-boundaries.html>. 105 // Be careful with these re-exports. 109 // independently. Re-exporting something from the compiler is the sure way to 143 // These are negative re-exports: pub using these names is forbidden, they 153 /// root module. 166 pub fn origin(self, db: &dyn HirDatabase) -> CrateOrigin { in origin() 170 pub fn is_builtin(self, db: &dyn HirDatabase) -> bool { in is_builtin() [all …]
|