| /arkcompiler/ets_frontend/ets2panda/aot/ |
| D | main.cpp | 23 #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/ |
| D | diagnosticEngine.cpp | 16 #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 …]
|
| D | options.h | 45 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_;
|
| D | diagnosticEngine.h | 53 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()
|
| D | importPathManager.h | 106 util::DiagnosticEngine &diagnosticEngine) 114 diagnosticEngine_ {diagnosticEngine} 181 util::DiagnosticEngine &diagnosticEngine_;
|
| /arkcompiler/ets_frontend/ets2panda/compiler/core/ |
| D | compilerImpl.h | 28 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
|
| D | compilerImpl.cpp | 113 void HandleGenerateDecl(const parser::Program &program, util::DiagnosticEngine &diagnosticEngine, in HandleGenerateDecl() argument 118 …diagnosticEngine.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/ |
| D | ast_verifier_getter_setter_test.cpp | 19 #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()
|
| D | ast_verifier_short_test.cpp | 25 #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()
|
| D | ast_verifier_getter_setter_neg_test.cpp | 19 #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()
|
| D | ast_verifier_check_abstract_call_test.cpp | 21 #include "util/diagnosticEngine.h" 35 ark::es2panda::util::DiagnosticEngine de; in TEST_F()
|
| /arkcompiler/ets_frontend/ets2panda/ |
| D | es2panda.cpp | 87 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;
|
| D | es2panda.h | 46 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/ |
| D | JSparser.h | 24 … JSParser(Program *program, const util::Options &options, util::DiagnosticEngine &diagnosticEngine, 26 : ParserImpl(program, &options, diagnosticEngine, status)
|
| /arkcompiler/ets_frontend/ets2panda/checker/ |
| D | IsolatedDeclgenChecker.h | 25 …explicit IsolatedDeclgenChecker(util::DiagnosticEngine &diagnosticEngine, parser::Program &program) in IsolatedDeclgenChecker() argument 26 : diagnosticEngine_(diagnosticEngine), program_(program) in IsolatedDeclgenChecker() 58 util::DiagnosticEngine &diagnosticEngine_;
|
| D | ASchecker.h | 26 …explicit ASChecker(util::DiagnosticEngine &diagnosticEngine, [[maybe_unused]] ArenaAllocator *allo… in ASChecker() argument 27 : Checker(diagnosticEngine) in ASChecker()
|
| D | JSchecker.h | 26 explicit JSChecker(util::DiagnosticEngine &diagnosticEngine, 28 : Checker(diagnosticEngine) in Checker() argument
|
| D | checker.cpp | 23 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/ |
| D | ASLexer.h | 24 …licit ASLexer(const parser::ParserContext *parserContext, util::DiagnosticEngine &diagnosticEngine) in ASLexer() argument 25 : Lexer(parserContext, diagnosticEngine, false) in ASLexer()
|
| D | TSLexer.h | 24 …licit TSLexer(const parser::ParserContext *parserContext, util::DiagnosticEngine &diagnosticEngine) in TSLexer() argument 25 : Lexer(parserContext, diagnosticEngine, false) in TSLexer()
|
| D | ETSLexer.h | 25 …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/ |
| D | etsWarningAnalyzer.h | 25 util::DiagnosticEngine &diagnosticEngine) in ETSWarningAnalyzer() argument 26 : program_(program), diagnosticEngine_(diagnosticEngine) in ETSWarningAnalyzer() 82 util::DiagnosticEngine &diagnosticEngine_;
|
| /arkcompiler/ets_frontend/ets2panda/public/ |
| D | es2panda_lib.cpp | 250 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 …]
|
| D | public.h | 50 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/ |
| D | arktsconfig_include.cpp | 18 #include "util/diagnosticEngine.h" 67 ark::es2panda::util::DiagnosticEngine de; in TEST_P()
|