SILUBS.ScriptureChecks.QuotationCheck.Check C# (CSharp) Method

Check() public method

Checks the given tokens for quotation errors. Ignores any found in 'validItemsList'. Calls the given RecordError handler for each one.
public Check ( IEnumerable toks, RecordErrorHandler record ) : void
toks IEnumerable The tokens to check.
record RecordErrorHandler Method to call to record errors.
return void
		public void Check(IEnumerable<ITextToken> toks, RecordErrorHandler record)
		{
			foreach (TextTokenSubstring tts in GetReferences(toks, string.Empty))
			{
				string punctChar = tts.ToString();
				if (!m_validItemsList.Contains(punctChar))
					record(new RecordErrorEventArgs(tts, CheckId));
			}
		}