Commit deb9890c authored by Kristof Szabados's avatar Kristof Szabados
Browse files

variable scope reduction

parent c9e7a604
......@@ -397,14 +397,11 @@ public class PreprocessedTokenStream extends BufferedTokenStream {
warnings.add(marker);
}
// check if the file is already loaded into an editor
IDocument document = null;
ISemanticTITANEditor editor = null;
List<ISemanticTITANEditor> editors = null;
String code = null;
if (EditorTracker.containsKey(includedFile)) {
editors = EditorTracker.getEditor(includedFile);
editor = editors.get(0);
document = editor.getDocument();
List<ISemanticTITANEditor> editors = EditorTracker.getEditor(includedFile);
ISemanticTITANEditor editor = editors.get(0);
IDocument document = editor.getDocument();
code = document.get();
}
// create lexer and set it up
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment