• Home
  • Raw
  • Download

Lines Matching full:diagnosticengine

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()
97 diagnosticEngine.LogDiagnostic(kind, params); in CompileMultipleFiles()
113 util::DiagnosticEngine &diagnosticEngine) in CompileFromConfig() argument
117 diagnosticEngine.LogDiagnostic(diagnostic::NO_INPUT, util::DiagnosticMessageParams {}); in CompileFromConfig()
127diagnosticEngine.LogDiagnostic(diagnostic::OPEN_FAILED, util::DiagnosticMessageParams {src}); in CompileFromConfig()
139 …seInputsAndReturn(parserInputs, CompileMultipleFiles(compiler, inputs, options, diagnosticEngine)); in CompileFromConfig()
146 auto res = CompileFromSource(compiler, input, *options, diagnosticEngine); in CompileFromConfig()
148 diagnosticEngine.LogDiagnostic(diagnostic::COMPILE_FAILED, in CompileFromConfig()
157 … util::DiagnosticEngine &diagnosticEngine) in InitializePlugins() argument
163 diagnosticEngine.LogDiagnostic(diagnostic::PLUGIN_LOAD_FAILED, in InitializePlugins()
175 auto diagnosticEngine = util::DiagnosticEngine(); in Run() local
176 auto options = std::make_unique<util::Options>(args[0], diagnosticEngine); in Run()
178 diagnosticEngine.FlushDiagnostic(); in Run()
181 diagnosticEngine.SetWError(options->IsEtsWarningsWerror()); in Run()
185 util::DiagnosticEngine::InitializeSignalHandlers(); in Run()
187 auto pluginsOpt = InitializePlugins(options->GetPlugins(), diagnosticEngine); in Run()
189 diagnosticEngine.FlushDiagnostic(); in Run()
197 diagnosticEngine.FlushDiagnostic(); in Run()
203 res = CompileFromConfig(compiler, options.get(), diagnosticEngine); in Run()
216 res = CompileFromSource(compiler, input, *options.get(), diagnosticEngine); in Run()
218 diagnosticEngine.FlushDiagnostic(); in Run()