Changeset 1574 for cobra/trunk/Source/Compiler.cobra
- Timestamp:
- 08/12/08 23:46:19 (5 months ago)
- Files:
-
- 1 modified
-
cobra/trunk/Source/Compiler.cobra (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Source/Compiler.cobra
r1569 r1574 75 75 var _messages as List<of SourceException> # all errors and warnings 76 76 var _messagesPerSourceLine as IDictionary<of String, List<of SourceException>> # key is 'filename:lineNum' 77 var _noWarningLines as ISet<of String> # key is 'filename:lineNum' 77 78 78 79 var _intermediateFileNames as List<of String> … … 105 106 _messages = List<of SourceException>() 106 107 _messagesPerSourceLine = Dictionary<of String, List<of SourceException>>() 108 _noWarningLines = Set<of String>() 107 109 _errors = List<of SourceException>() 108 110 _warnings = List<of SourceException>() … … 182 184 183 185 get messages from var 186 187 pro noWarningLines from var 184 188 185 189 pro htmlWriter from var … … 1154 1158 def warning(cw as CobraWarning) 1155 1159 require not cw.isError 1160 if _suppressWarning(cw), return 1156 1161 _addMessage(cw) 1157 1162 1163 def _suppressWarning(cw as CobraWarning) as bool 1164 # TODO: add suppress all warnings (cmdline sw) - maybe? 1165 # TODO: add suppress by error tag - maybe? 1166 entry = if(cw.hasSourceSite, '[cw.fileName]:[cw.lineNum]', '') 1167 return _noWarningLines.contains(entry) 1168 1158 1169 def augmentWarning(node as ISyntaxNode, lookFor as String, search as String, augment as String) as bool 1159 1170 require
