Exemple #1
0
		public void Error(String filename, LexicalPosition pos, String contents, params object[] args)
		{
			if (disabled != 0) return;

			errors++;

			list.Add( new ErrorEntry(true, filename, pos, String.Format(contents, args) ) );
		}
Exemple #2
0
		public void Warning(String filename, LexicalPosition pos, Severity severity, String contents, params object[] args)
		{
			if (disabled != 0) return;

			warnings++;

			list.Add( new ErrorEntry(false, "", new LexicalPosition(), String.Format(contents, args) ) );
		}
Exemple #3
0
		public ErrorEntry(bool error, string filename, LexicalPosition pos, string contents)
		{
			this.filename = filename;
			this.isError = error;
			this.pos = pos;
			this.contents = contents;
		}