mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-14 16:08:02 -05:00
Diagnostics for expression_compiler
This commit is contained in:
@@ -5,7 +5,7 @@ declare const Debug: {
|
||||
export default function main() {
|
||||
let triNum = 0;
|
||||
|
||||
for (let i = 1; ; i++) {
|
||||
for (let i = 1;; i++) {
|
||||
triNum += i;
|
||||
const factorCount = countFactors(triNum);
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -58,7 +58,7 @@ impl FunctionCompiler {
|
||||
};
|
||||
}
|
||||
|
||||
fn todo(&mut self, span: swc_common::Span, message: &str) {
|
||||
pub fn todo(&mut self, span: swc_common::Span, message: &str) {
|
||||
self.diagnostics.push(Diagnostic {
|
||||
level: DiagnosticLevel::InternalError,
|
||||
message: format!("TODO: {}", message),
|
||||
|
||||
Reference in New Issue
Block a user