// // Copyright (c) 2006, Brian Frank and Andy Frank // Licensed under the Academic Free License version 3.0 // // History: // 18 May 06 Brian Frank Creation // ** ** CompilerErr - instances should always be created via CompilerStep.err(). ** const class CompilerErr : Err { new make(Str msg, Location? location, Err? cause := null) : super(msg, cause) { if (location != null) { this.file = location.file this.line = location.line this.col = location.col } } Location location() { return Location(file, line, col) } const Str? file const Int? line const Int? col }