コード例 #1
0
		public CommentDefinitionBlock(PossiblySpecified<bool> startsParagraph, CommentDefinitionBlockPrelude prelude, IEnumerable<CommentDefinitionBlockStatement> body, List<ParseError> errors)
			: base(errors)
		{
			StartsParagraph = startsParagraph;
			Prelude = prelude;
			Body = body.ToList();
		}
コード例 #2
0
ファイル: ErrorFinder.cs プロジェクト: arlobelshee/Fools.net
		public void Visit(CommentDefinitionBlockPrelude prelude)
		{
			Errors.AddRange(prelude.Errors.Select(e => new ErrorDescription(_currentLineNumber, $"##[{prelude.CommentId}]:", e, prelude)));
			++_currentLineNumber;
		}