X-Git-Url: http://nitlanguage.org diff --git a/src/toolcontext.nit b/src/toolcontext.nit index 3190c6d..4583868 100644 --- a/src/toolcontext.nit +++ b/src/toolcontext.nit @@ -130,9 +130,16 @@ redef class Location messages = ms end ms.add m + var s = file + if s != null then s.messages.add m end end +redef class SourceFile + # Errors and warnings associated to the whole source. + var messages = new Array[Message] +end + # Global context for tools class ToolContext # Number of errors