Home
last modified time | relevance | path

Searched refs:imports (Results 1 – 25 of 467) sorted by relevance

12345678910>>...19

/third_party/typescript_eslint/packages/eslint-plugin/docs/rules/
Dconsistent-type-imports.md1 # Enforces consistent usage of type imports (`consistent-type-imports`)
3 TypeScript 3.8 added support for type-only imports.
4 Type-only imports allow you to specify that an import can only be used in a type location, allowing…
8 This rule aims to standardize the use of type imports style across the codebase.
14 prefer: 'type-imports' | 'no-type-imports';
19 prefer: 'type-imports',
26 This option defines the expected import kind for type-only imports. Valid values for `prefer` are:
28 - `type-imports` will enforce that you always use `import type Foo from '...'`. It is default.
29 - `no-type-imports` will enforce that you always use `import Foo from '...'`.
31 …s of **correct** code with `{prefer: 'type-imports'}`, and **incorrect** code with `{prefer: 'no-t…
[all …]
Dno-duplicate-imports.md1 # Disallow duplicate imports (`no-duplicate-imports`)
5 …s rule extends the base [`eslint/no-duplicate-imports`](https://eslint.org/docs/rules/no-duplicate…
13 "no-duplicate-imports": "off",
14 "@typescript-eslint/no-duplicate-imports": ["error"]
20 See [`eslint/no-duplicate-imports` options](https://eslint.org/docs/rules/no-duplicate-imports#opti…
22 …ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-duplicate-imports.md)</sup>
Dno-require-imports.md1 # Disallows invocation of `require()` (`no-require-imports`)
3 Prefer the newer ES6-style imports over `require()`.
34 - TSLint: [no-require-imports](https://palantir.github.io/tslint/rules/no-require-imports/)
/third_party/python/Lib/lib2to3/fixes/
Dfix_itertools_imports.py15 imports = results['imports']
16 if imports.type == syms.import_as_name or not imports.children:
17 children = [imports]
19 children = imports.children
40 children = imports.children[:] or [imports]
52 if (not (imports.children or getattr(imports, 'value', None)) or
53 imports.parent is None):
/third_party/flatbuffers/src/
Didl_gen_ts.cpp58 import_set &imports, import_set &bare_imports) const { in SaveType() argument
68 for (auto it = imports.begin(); it != imports.end(); it++) in SaveType()
71 if (!imports.empty()) code += "\n\n"; in SaveType()
85 import_set imports; in generateEnums() local
88 GenEnum(enum_def, &enumcode, imports, false); in generateEnums()
89 GenEnum(enum_def, &enumcode, imports, true); in generateEnums()
90 SaveType(enum_def, enumcode, imports, bare_imports); in generateEnums()
99 import_set imports; in generateStructs() local
103 GenStruct(parser_, struct_def, &declcode, imports); in generateStructs()
104 SaveType(struct_def, declcode, imports, bare_imports); in generateStructs()
[all …]
/third_party/mesa3d/src/glx/
Dglxglvnd.c58 __GLXvendorInfo *vendor, __GLXapiImports *imports) in __glx_Main() argument
72 imports->isScreenSupported = __glXGLVNDIsScreenSupported; in __glx_Main()
73 imports->getProcAddress = __glXGLVNDGetProcAddress; in __glx_Main()
74 imports->getDispatchAddress = __glXGLVNDGetDispatchAddress; in __glx_Main()
75 imports->setDispatchIndex = __glXGLVNDSetDispatchIndex; in __glx_Main()
76 imports->notifyError = NULL; in __glx_Main()
77 imports->isPatchSupported = NULL; in __glx_Main()
78 imports->initiatePatch = NULL; in __glx_Main()
/third_party/mesa3d/src/egl/main/
Deglglvnd.c84 __EGLvendorInfo *vendor, __EGLapiImports *imports) in __egl_Main() argument
93 imports->getPlatformDisplay = __eglGLVNDGetPlatformDisplay; in __egl_Main()
94 imports->getSupportsAPI = _eglIsApiValid; in __egl_Main()
95 imports->getVendorString = __eglGLVNDGetVendorString; in __egl_Main()
96 imports->getProcAddress = __eglGLVNDGetProcAddress; in __egl_Main()
97 imports->getDispatchAddress = __eglDispatchFindDispatchFunction; in __egl_Main()
98 imports->setDispatchIndex = __eglSetDispatchIndex; in __egl_Main()
/third_party/node/lib/internal/modules/esm/
Dcreate_dynamic_module.js31 const createDynamicModule = (imports, exports, url = '', evaluate) => { argument
34 ${ArrayPrototypeJoin(ArrayPrototypeMap(imports, createImport), '\n')}
47 if (imports.length)
48 reflect.imports = ObjectCreate(null);
53 if (reflect.imports)
54 meta.imports = reflect.imports;
/third_party/grpc/src/compiler/
Dobjective_c_plugin.cc166 ::std::string imports; in Generate()
168 imports = LocalImport(file_name + ".pbobjc.h"); in Generate()
170 imports = FrameworkImport(file_name + ".pbobjc.h", framework); in Generate()
240 PreprocIfNot(kForwardDeclare, imports) + "\n" + in Generate()
253 ::std::string imports; in Generate()
255 imports = LocalImport(file_name + ".pbrpc.h") + in Generate()
258 imports = FrameworkImport(file_name + ".pbrpc.h", framework) + in Generate()
264 imports += in Generate()
267 imports += LocalImport(grpc_local_import_prefix + in Generate()
269 imports += LocalImport(grpc_local_import_prefix + in Generate()
[all …]
/third_party/typescript/tests/baselines/reference/
DimportCallExpressionErrorInES2015.errors.txt1 tests/cases/conformance/dynamicImport/1.ts(1,1): error TS1323: Dynamic imports are only supported w…
2 tests/cases/conformance/dynamicImport/1.ts(2,10): error TS1323: Dynamic imports are only supported …
3 tests/cases/conformance/dynamicImport/1.ts(8,16): error TS1323: Dynamic imports are only supported …
12 !!! error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', '…
15 !!! error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', '…
23 !!! error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', '…
DimportCallExpressionNestedES2015.errors.txt1 tests/cases/conformance/dynamicImport/index.ts(2,18): error TS1323: Dynamic imports are only suppor…
2 tests/cases/conformance/dynamicImport/index.ts(2,32): error TS1323: Dynamic imports are only suppor…
12 !!! error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', '…
14 !!! error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', '…
DimportCallExpressionNestedES20152.errors.txt1 tests/cases/conformance/dynamicImport/index.ts(2,18): error TS1323: Dynamic imports are only suppor…
2 tests/cases/conformance/dynamicImport/index.ts(2,32): error TS1323: Dynamic imports are only suppor…
12 !!! error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', '…
14 !!! error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', '…
/third_party/grpc/src/python/grpcio_tests/tests/interop/
DBUILD.bazel9 imports = ["../../"],
18 imports = ["../../"],
38 imports = ["../../"],
69 imports = ["../../"],
81 imports = ["../../"],
110 imports = ["../../"],
126 imports = ["../../"],
/third_party/typescript/tests/cases/fourslash/
DrenameImportAndExportInDiffFiles.ts12 const imports = { definition: "(alias) var a: any\nimport a", ranges: [r1, r2] }; constant
13 verify.referenceGroups(r0, [vars, imports]);
14 verify.referenceGroups(r1, [imports, vars]);
15 verify.referenceGroups(r2, [imports, vars]);
DrenameImportOfReExport.ts26 const imports = { definition: "(alias) class C\nimport C", ranges: importRanges }; constant
27 verify.referenceGroups(r0, [classes, bs, imports]);
28 verify.referenceGroups(r1, [classes, bs, imports]);
29 verify.referenceGroups(importRanges, [imports, bs, classes]);
DfindAllRefsClassExpression2.ts14 const imports = { definition: "(alias) (local class) A\nimport A", ranges: [r1, r2] }; constant
15 verify.referenceGroups([r0], [defs, imports]);
16 verify.referenceGroups([r1, r2], [imports, defs]);
DfindAllRefsClassExpression1.ts14 const imports = { definition: '(alias) (local class) A\nimport A = require("./a")', ranges: [r1, r2… constant
15 verify.referenceGroups([r0], [defs, imports]);
16 verify.referenceGroups([r1, r2], [imports, defs]);
DfindReferencesJSXTagName.ts15 const imports = { definition: "(alias) const SubmissionComp: (submission: any) => any\nimport Submi… constant
17 verify.referenceGroups([r0, r1], [imports, def]);
18 verify.referenceGroups(r2, [def, imports]);
DfindAllRefsExportAsNamespace.ts20 const imports = { definition: "(alias) function f(): void\nimport f", ranges: [r1] }; constant
22 verify.referenceGroups([r0, r2], [globals, imports]);
23 verify.referenceGroups(r1, [imports, globals]);
DgetOccurrencesIsDefinitionOfExport.ts11 const imports = { definition: "(alias) var x: number\nimport x", ranges: [r1, r2] }; constant
12 verify.referenceGroups(r0, [defs, imports]);
13 verify.referenceGroups([r1, r2], [imports, defs]);
DfindAllRefsClassExpression0.ts14 const imports = { definition: '(alias) (local class) A\nimport A = require("./a")', ranges: [r2, r3… constant
15 verify.referenceGroups([r0, r1], [defs, imports]);
16 verify.referenceGroups([r2, r3], [imports, defs]);
DfindAllRefsOnImportAliases.ts18 const imports = { definition: "(alias) class Class\nimport Class", ranges: [r1, r2] }; constant
20 verify.referenceGroups(r0, [classes, imports, reExports]);
21 verify.referenceGroups([r1, r2], [imports, classes, reExports]);
DrenameDefaultImportDifferentName.ts20 const imports = { definition: "(alias) class B\nimport B", ranges: [B0, B1] }; constant
21 verify.referenceGroups(C, [classes, imports]);
22 verify.singleReferenceGroup(imports.definition, [B0, B1]);
/third_party/icu/icu4c/source/test/depstest/
Ddepstest.py129 imports = set()
137 imports |= obj_file["imports"]
139 imports -= exports | _ignored_symbols
149 if files and imports.isdisjoint(dep_exports) and imports.isdisjoint(dep_system_symbols):
157 imports -= exports | system_symbols
158 for symbol in imports:
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/
Dforbidden_imports_test.dart12 test('no unauthorized imports of dart:io', () {
29 fail("$relativePath imports 'dart:io'; import 'lib/src/base/io.dart' instead");
36 test('no unauthorized imports of package:path', () {
49 fail("$relativePath imports 'package:path/path.dart'; use 'fs.path' instead");
56 test('no unauthorized imports of dart:convert', () {
73 fail("$relativePath imports 'dart:convert'; import 'lib/src/convert.dart' instead");
80 test('no unauthorized imports of build_runner', () {
101 fail('$relativePath imports a build_runner package');

12345678910>>...19