private TexlError PostError(Token tok, ErrorResourceKey errKey) { Contracts.AssertValue(tok); Contracts.AssertValue(errKey.Key); TexlError err = new TexlError(tok, DocumentErrorSeverity.Critical, errKey); CollectionUtils.Add(ref _errors, err); return(err); }
public TexlError Error(DocumentErrorSeverity severity, TexlNode node, ErrorResourceKey errKey, params object[] args) { Contracts.AssertValue(node); Contracts.AssertValue(args); TexlError err = new TexlError(node, severity, errKey, args); CollectionUtils.Add(ref _errors, err); return(err); }