public CommentDefinitionBlock(PossiblySpecified<bool> startsParagraph, CommentDefinitionBlockPrelude prelude, IEnumerable<CommentDefinitionBlockStatement> body, List<ParseError> errors) : base(errors) { StartsParagraph = startsParagraph; Prelude = prelude; Body = body.ToList(); }
public void Visit(CommentDefinitionBlockPrelude prelude) { Errors.AddRange(prelude.Errors.Select(e => new ErrorDescription(_currentLineNumber, $"##[{prelude.CommentId}]:", e, prelude))); ++_currentLineNumber; }