コード例 #1
0
ファイル: QuotationCheck.cs プロジェクト: bbriggs/FieldWorks
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// If verbose quotes are activated, outputs (the text token substring of) the given
		/// quotation related token, attaching the given trace message to it.
		/// </summary>
		/// <param name="qmTok">The token being processed</param>
		/// <param name="message">The trace message to be displayed</param>
		/// ------------------------------------------------------------------------------------
		private void GenerateTraceMsg(QToken qmTok, string message)
		{
			// Only output the trace message in verbose mode
			if (m_verboseQuotes)
				ReportError(qmTok, message);
		}
コード例 #2
0
ファイル: QuotationCheck.cs プロジェクト: bbriggs/FieldWorks
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Outputs (the text token substring of) the given quotation related token, attaching
		/// the given error message to it.
		/// </summary>
		/// <param name="qrTok">The token being processed</param>
		/// <param name="message">The error message to be displayed</param>
		/// ------------------------------------------------------------------------------------
		private void ReportError(QToken qrTok, string message)
		{
			Output(new TextTokenSubstring(qrTok.Tts, message));
		}