JScratch
Loading...
Searching...
No Matches
CompilationResult.java
Go to the documentation of this file.
1package com.jscratch.compiler;
2
3import java.util.ArrayList;
4import java.util.List;
5
6public class CompilationResult {
7 public boolean success;
8 public List<CompilationError> errors = new ArrayList<>();
9 public String output;
10
11 public static class CompilationError {
12 public String fileName;
13 public int line;
14 public String message;
15
16 public CompilationError(String fileName, int line, String message) {
17 this.fileName = fileName;
18 this.line = line;
19 this.message = message;
20 }
21 }
22}
CompilationError(String fileName, int line, String message)