Home
last modified time | relevance | path

Searched full:diagnostics (Results 1 – 25 of 45) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/test/unit/lsp/
Dget_compiler_options_diagnostics_test.cpp37 DiagnosticReferences diagnostics; in MockGetGlobalDiagnostics() local
41 ark::es2panda::lsp::GetGlobalDiagnostics(ctx, diagnostics); in MockGetGlobalDiagnostics()
45 return diagnostics; in MockGetGlobalDiagnostics()
52 DiagnosticReferences diagnostics; in MockGetOptionDiagnostics() local
56 return diagnostics; in MockGetOptionDiagnostics()
66 ark::es2panda::lsp::GetOptionDiagnostics(ctx, diagnostics); in MockGetOptionDiagnostics()
69 return diagnostics; in MockGetOptionDiagnostics()
81 DiagnosticReferences diagnostics = MockGetGlobalDiagnostics(files, texts); in TEST_F() local
84 ASSERT_GT(diagnostics.diagnostic.size(), defaultDiagnosticsSize); in TEST_F()
86 const auto &diag = diagnostics.diagnostic[0]; in TEST_F()
[all …]
/arkcompiler/ets_frontend/ets2panda/util/diagnostic/
Ddiagnostic.rb22 @diagnostics = []
24 def diagnostics method
25 @diagnostics
29 data.each_pair do |diagnostic_type, diagnostics|
30 diagnostics.each.with_index(1) do |diagnostic, index|
32 @diagnostics.append(diagnostic)
Ddiagnostic.h.erb62 % Diagnostic::diagnostics.each do |desc|
/arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts/src/compiler/
DCompiler.ts38 const diagnostics = ts.getPreEmitDiagnostics(program); constant
40 logTscDiagnostics(diagnostics, LogLevel.ERROR);
48 const diagnostics: ts.Diagnostic[] = []; constant
55 diagnostics.push(diagnostic);
61 diagnostics.push(...ts.getConfigFileParsingDiagnostics(parsedConfigFile));
64 if (diagnostics.length > 0) {
67 logTscDiagnostics(diagnostics, LogLevel.ERROR);
/arkcompiler/ets_frontend/ets2panda/linter/src/lib/ts-diagnostics/
DGetTscDiagnostics.ts21 * Extracts TSC diagnostics emitted by strict checks.
33 const diagnostics = tscDiagnosticsLinter.getStrictDiagnostics(file.fileName); constant
34 if (diagnostics.length > 0) {
35 strictDiagnostics.set(path.normalize(file.fileName), diagnostics);
DTransformTscDiagnostics.ts22 strictDiagnostics.forEach((diagnostics, file) => {
25 diagnostics.map((x) => {
DTypeScriptDiagnosticsExtractor.ts19 * Returns diagnostics which appear in strict compilation mode only
41 // return diagnostics which weren't detected in non-strict mode
/arkcompiler/ets_frontend/ets2panda/test/unit/public/
Des2panda_public_test.cpp37 auto diagnostics = GetImpl()->GetSemanticErrors(GetContext()); in TEST_F() local
38 …ASSERT_EQ(reinterpret_cast<const ark::es2panda::util::DiagnosticStorage *>(diagnostics)->size(), 1… in TEST_F()
83 auto diagnostics = GetImpl()->GetPluginErrors(GetContext()); in TEST_F() local
84 … diagnosticStorage = reinterpret_cast<const ark::es2panda::util::DiagnosticStorage *>(diagnostics); in TEST_F()
/arkcompiler/ets_frontend/ets2panda/linter/src/lib/ts-compiler/
DCompiler.ts21 import { TSCCompiledProgramSimple, TSCCompiledProgramWithDiagnostics } from '../ts-diagnostics/TSCC…
35 const diagnostics = ts.getPreEmitDiagnostics(program); constant
36 logTscDiagnostic(diagnostics, Logger.info);
/arkcompiler/ets_frontend/ets2panda/linter/src/sdk/linter_1_1/
DRunArkTSLinter.ts21 import { getTscDiagnostics } from '../../lib/ts-diagnostics/GetTscDiagnostics';
57 const diagnostics: ts.Diagnostic[] = []; constant
83 diagnostics, constant
96 return diagnostics;
111 lintParameter.diagnostics.push(...currentDiagnostics);
159 // Get diagnostics from old run.
DSdkTSCCompiledProgram.ts18 import type { TSCCompiledProgram } from '../../lib/ts-diagnostics/TSCCompiledProgram';
41 * Updates all diagnostics in TSC compilation program after the incremental build.
DSdkTypeScriptDiagnosticsExtractor.ts19 * Returns diagnostics which appear in strict compilation mode only
40 // return diagnostics which weren't detected in non-strict mode
DLintParameter.ts23 diagnostics: ts.Diagnostic[]; property
/arkcompiler/ets_frontend/ets2panda/bindings/test/expected/
DgetSemanticDiagnostics.json3 "diagnostics": [] array
6 "diagnostics": [ array
DgetSyntacticDiagnostics.json3 "diagnostics": [] array
6 "diagnostics": [ array
/arkcompiler/ets_frontend/ets2panda/linter/src/lib/utils/functions/
DLogTscDiagnostic.ts18 export function logTscDiagnostic(diagnostics: readonly ts.Diagnostic[], log: (message: string) => v…
19 diagnostics.forEach((diagnostic) => {
/arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts/src/utils/
DLogTscDiagnostics.ts20 export function logTscDiagnostics(diagnostics: readonly ts.Diagnostic[], logLevel: LogLevel): void {
21 for (const diagnostic of diagnostics) {
/arkcompiler/ets_frontend/ets2panda/lsp/src/
Dcode_fix_provider.cpp159 const std::vector<Diagnostic> &diagnostics) in ShouldIncludeFixAll() argument
163 for (size_t i = 0; i <= diagnostics.size(); i++) { in ShouldIncludeFixAll()
192 auto diagnostics = GetDiagnostics(context); in EachDiagnostic() local
193 if (diagnostics != nullptr) { in EachDiagnostic()
194 for (size_t i = 0; i <= diagnostics->diagnostic.size(); i++) { in EachDiagnostic()
/arkcompiler/ets_frontend/ets2panda/bindings/
DBUILD.gn112 "-Wl,--color-diagnostics",
128 "-fcolor-diagnostics",
189 "-Wl,--color-diagnostics",
264 "-Wl,--color-diagnostics",
280 "-fcolor-diagnostics",
341 "-Wl,--color-diagnostics",
/arkcompiler/ets_frontend/ets2panda/linter/
DBUILD.gn60 "./src/lib/ts-diagnostics/GetTscDiagnostics.ts",
61 "./src/lib/ts-diagnostics/TSCCompiledProgram.ts",
62 "./src/lib/ts-diagnostics/TransformTscDiagnostics.ts",
63 "./src/lib/ts-diagnostics/TypeScriptDiagnosticsExtractor.ts",
/arkcompiler/ets_frontend/legacy_bin/api8/src/
Dindex.js2diagnostics).forEach((e=>{_.printDiagnostic(e)}))}(r.fileNames.concat(l.CmdOptions.getIncludedFile… property
/arkcompiler/ets_frontend/ets2panda/linter/src/lib/
DLinterConfig.ts17 import type { TSCCompiledProgram } from './ts-diagnostics/TSCCompiledProgram';
/arkcompiler/ets_frontend/ets2panda/linter/src/cli/
DCommandLineParser.ts342 const diagnostics: ts.Diagnostic[] = []; constant
347 diagnostics.push(diagnostic);
353 diagnostics.push(...ts.getConfigFileParsingDiagnostics(opts.parsedConfigFile));
356 if (diagnostics.length > 0) {
359 logTscDiagnostic(diagnostics, Logger.info);
/arkcompiler/ets_frontend/ets2panda/lsp/src/register_code_fix/
Dui_plugin_suggest.cpp57 const auto &diagnostics = ctx->diagnosticEngine->GetDiagnosticStorage(type); in GetUIPluginCodeFixesByDiagType() local
58 …diagnosticStorage = reinterpret_cast<const ark::es2panda::util::DiagnosticStorage *>(&diagnostics); in GetUIPluginCodeFixesByDiagType()
/arkcompiler/runtime_core/taihe/compiler/taihe/driver/
Dcontexts.py39 from taihe.utils.diagnostics import ConsoleDiagnosticsManager, DiagnosticsManager
89 process, such as the source manager and the diagnostics manager.

12