Home
last modified time | relevance | path

Searched full:diagnosticengine (Results 1 – 25 of 84) sorted by relevance

1234

/arkcompiler/ets_frontend/ets2panda/aot/
Dmain.cpp23 #include "util/diagnosticEngine.h"
56 util::DiagnosticEngine &diagnosticEngine) in CompileFromSource() argument
58 …o program = std::unique_ptr<pandasm::Program> {compiler.Compile(input, options, diagnosticEngine)}; in CompileFromSource()
63 if (diagnosticEngine.IsAnyError()) { in CompileFromSource()
69 diagnosticEngine.Log(err); in CompileFromSource()
75 …[&diagnosticEngine](const diagnostic::DiagnosticKind &kind, const util::DiagnosticMessageParams &p… in CompileFromSource()
76 diagnosticEngine.LogDiagnostic(kind, params); in CompileFromSource()
83 util::DiagnosticEngine &diagnosticEngine) in CompileMultipleFiles() argument
86 auto overallRes = compiler.CompileM(inputs, *options, diagnosticEngine, result); in CompileMultipleFiles()
96 …[&diagnosticEngine](const diagnostic::DiagnosticKind &kind, const util::DiagnosticMessageParams &p… in CompileMultipleFiles()
[all …]
/arkcompiler/ets_frontend/ets2panda/util/
DdiagnosticEngine.cpp16 #include "diagnosticEngine.h"
40 const DiagnosticStorage &DiagnosticEngine::GetDiagnosticStorage(DiagnosticType type) in GetDiagnosticStorage()
45 [[noreturn]] void DiagnosticEngine::Throw(ThrowableDiagnostic diag) const in Throw()
50 DiagnosticStorage DiagnosticEngine::GetAllDiagnostic() in GetAllDiagnostic()
67 DiagnosticStorage DiagnosticEngine::GetErrorDiagnostic() in GetErrorDiagnostic()
86 std::string DiagnosticEngine::PrintAndFlushErrorDiagnostic() in PrintAndFlushErrorDiagnostic()
98 void DiagnosticEngine::FlushDiagnostic() in FlushDiagnostic()
120 void DiagnosticEngine::InitializeSignalHandlers() in InitializeSignalHandlers()
127 bool DiagnosticEngine::IsAnyError() const noexcept in IsAnyError()
137 const DiagnosticBase &DiagnosticEngine::GetAnyError() const in GetAnyError()
[all …]
Doptions.h45 explicit Options(std::string_view execPath, util::DiagnosticEngine &diagnosticEngine) in Options() argument
46 : gen::Options(std::string(execPath)), diagnosticEngine_(diagnosticEngine) in Options()
181 util::DiagnosticEngine &diagnosticEngine);
211 util::DiagnosticEngine &diagnosticEngine_;
DdiagnosticEngine.h53 class DiagnosticEngine {
55 explicit DiagnosticEngine() : printer_(std::make_unique<CLIDiagnosticPrinter>()) in DiagnosticEngine() function
59 NO_COPY_SEMANTIC(DiagnosticEngine);
60 NO_MOVE_SEMANTIC(DiagnosticEngine);
61 ~DiagnosticEngine() in ~DiagnosticEngine()
DimportPathManager.h106 util::DiagnosticEngine &diagnosticEngine)
114 diagnosticEngine_ {diagnosticEngine}
181 util::DiagnosticEngine &diagnosticEngine_;
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DcompilerImpl.h28 void HandleGenerateDecl(const parser::Program &program, util::DiagnosticEngine &diagnosticEngine,
34 util::DiagnosticEngine &de) in CompilationUnit()
35 : input(i), options(o), rawParserStatus(s), ext(e), diagnosticEngine(de) in CompilationUnit()
44 util::DiagnosticEngine &diagnosticEngine; variable
DcompilerImpl.cpp113 void HandleGenerateDecl(const parser::Program &program, util::DiagnosticEngine &diagnosticEngine, in HandleGenerateDecl() argument
118diagnosticEngine.LogFatalError(diagnostic::OPEN_FAILED, util::DiagnosticMessageParams {outputPath}, in HandleGenerateDecl()
160 if (context.diagnosticEngine->IsAnyError()) { in DoIsolatedDeclgenCheck()
167 if (context.diagnosticEngine->IsAnyError()) { in DoIsolatedDeclgenCheck()
182 checker::IsolatedDeclgenChecker isolatedDeclgenChecker(*context.diagnosticEngine, program); in RunVerifierAndPhases()
218 if (name == "plugins-after-check" && context.diagnosticEngine->IsAnyError()) { in RunVerifierAndPhases()
229 …HandleGenerateDecl(program, *context.diagnosticEngine, path, options.IsGenerateDeclEnableIsolated(… in RunVerifierAndPhases()
421 } else if (context->diagnosticEngine->IsAnyError()) { in ExecuteParsingAndCompiling()
429 return !context->diagnosticEngine->IsAnyError(); in ExecuteParsingAndCompiling()
460 …Parser(&program, unit.options, unit.diagnosticEngine, static_cast<parser::ParserStatus>(unit.rawPa… in Compile()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/unit/public/
Dast_verifier_getter_setter_test.cpp19 #include "util/diagnosticEngine.h"
24 using ark::es2panda::util::DiagnosticEngine;
29 DiagnosticEngine de {}; in TEST_F()
54 DiagnosticEngine de {}; in TEST_F()
74 DiagnosticEngine de {}; in TEST_F()
Dast_verifier_short_test.cpp25 #include "util/diagnosticEngine.h"
49 using ark::es2panda::util::DiagnosticEngine;
121 DiagnosticEngine de {}; in TEST_F()
136 DiagnosticEngine de {}; in TEST_F()
158 DiagnosticEngine de {}; in TEST_F()
176 DiagnosticEngine de {}; in TEST_F()
192 DiagnosticEngine de {}; in TEST_F()
206 auto de = DiagnosticEngine(); in TEST_F()
Dast_verifier_getter_setter_neg_test.cpp19 #include "util/diagnosticEngine.h"
27 using ark::es2panda::util::DiagnosticEngine;
31 DiagnosticEngine de {}; in TEST_F()
106 DiagnosticEngine de {}; in TEST_F()
144 DiagnosticEngine de {}; in TEST_F()
186 DiagnosticEngine de {}; in TEST_F()
227 DiagnosticEngine de {}; in TEST_F()
Dast_verifier_check_abstract_call_test.cpp21 #include "util/diagnosticEngine.h"
35 ark::es2panda::util::DiagnosticEngine de; in TEST_F()
/arkcompiler/ets_frontend/ets2panda/
Des2panda.cpp87 util::DiagnosticEngine &diagnosticEngine, uint32_t parseStatus) in Compile() argument
95 …compiler_->Compile(compiler::CompilationUnit {input, options, parseStatus, ext_, diagnosticEngine}, in Compile()
104 … util::DiagnosticEngine &diagnosticEngine, std::vector<pandasm::Program *> &result) in CompileM() argument
119 …ompiler_->Compile(compiler::CompilationUnit {input, options, 0, ext_, diagnosticEngine}, &context); in CompileM()
123 diagnosticEngine.Log(err); in CompileM()
141 util::DiagnosticEngine *g_diagnosticEngine = nullptr;
Des2panda.h46 class DiagnosticEngine; variable
117 util::DiagnosticEngine &diagnosticEngine, uint32_t parseStatus = 0);
119 … util::DiagnosticEngine &diagnosticEngine, std::vector<pandasm::Program *> &result);
144 extern util::DiagnosticEngine *g_diagnosticEngine;
/arkcompiler/ets_frontend/ets2panda/parser/
DJSparser.h24 … JSParser(Program *program, const util::Options &options, util::DiagnosticEngine &diagnosticEngine,
26 : ParserImpl(program, &options, diagnosticEngine, status)
/arkcompiler/ets_frontend/ets2panda/checker/
DIsolatedDeclgenChecker.h25 …explicit IsolatedDeclgenChecker(util::DiagnosticEngine &diagnosticEngine, parser::Program &program) in IsolatedDeclgenChecker() argument
26 : diagnosticEngine_(diagnosticEngine), program_(program) in IsolatedDeclgenChecker()
58 util::DiagnosticEngine &diagnosticEngine_;
DASchecker.h26 …explicit ASChecker(util::DiagnosticEngine &diagnosticEngine, [[maybe_unused]] ArenaAllocator *allo… in ASChecker() argument
27 : Checker(diagnosticEngine) in ASChecker()
DJSchecker.h26 explicit JSChecker(util::DiagnosticEngine &diagnosticEngine,
28 : Checker(diagnosticEngine) in Checker() argument
Dchecker.cpp23 Checker::Checker(util::DiagnosticEngine &diagnosticEngine, ArenaAllocator *programAllocator) in Checker() argument
27 diagnosticEngine_(diagnosticEngine) in Checker()
163 return DiagnosticEngine().IsAnyError(); in IsAnyError()
/arkcompiler/ets_frontend/ets2panda/lexer/
DASLexer.h24 …licit ASLexer(const parser::ParserContext *parserContext, util::DiagnosticEngine &diagnosticEngine) in ASLexer() argument
25 : Lexer(parserContext, diagnosticEngine, false) in ASLexer()
DTSLexer.h24 …licit TSLexer(const parser::ParserContext *parserContext, util::DiagnosticEngine &diagnosticEngine) in TSLexer() argument
25 : Lexer(parserContext, diagnosticEngine, false) in TSLexer()
DETSLexer.h25 …icit ETSLexer(const parser::ParserContext *parserContext, util::DiagnosticEngine &diagnosticEngine) in ETSLexer() argument
26 : Lexer(parserContext, diagnosticEngine, false) in ETSLexer()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
DetsWarningAnalyzer.h25 util::DiagnosticEngine &diagnosticEngine) in ETSWarningAnalyzer() argument
26 : program_(program), diagnosticEngine_(diagnosticEngine) in ETSWarningAnalyzer()
82 util::DiagnosticEngine &diagnosticEngine_;
/arkcompiler/ets_frontend/ets2panda/public/
Des2panda_lib.cpp250 auto diagnosticEngine = new util::DiagnosticEngine(); in CreateConfig() local
251 auto *options = new util::Options(argv[0], *diagnosticEngine); in CreateConfig()
261 res->diagnosticEngine = diagnosticEngine; in CreateConfig()
276 cfg->diagnosticEngine->FlushDiagnostic(); in DestroyConfig()
277 delete cfg->diagnosticEngine; in DestroyConfig()
289 ES2PANDA_ASSERT(cfg->diagnosticEngine != nullptr); in GetAllErrorMessages()
290 auto allMessages = cfg->diagnosticEngine->PrintAndFlushErrorDiagnostic(); in GetAllErrorMessages()
322 …->parser = new parser::ETSParser(res->parserProgram, *res->config->options, *res->diagnosticEngine, in InitializeContext()
326 res->checker = res->allocator->New<checker::ETSChecker>(*res->diagnosticEngine, res->allocator); in InitializeContext()
352 res->diagnosticEngine = cfg->diagnosticEngine; in InitContext()
[all …]
Dpublic.h50 util::DiagnosticEngine *diagnosticEngine = nullptr; member
189 diagnosticEngine->LogFatalError(diagnostic::SIMULTANEOUSLY_MARK_FAILED.Message()); in MarkGenAbcForExternal()
212 util::DiagnosticEngine *diagnosticEngine = nullptr; member
/arkcompiler/ets_frontend/ets2panda/test/unit/arktsconfig-parser/
Darktsconfig_include.cpp18 #include "util/diagnosticEngine.h"
67 ark::es2panda::util::DiagnosticEngine de; in TEST_P()

1234