Skip to content

Commit

Permalink
Add span doc fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jroesch committed Jul 30, 2020
1 parent 816b34b commit d66d0c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/tvm/parser/source_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ struct Source {
* \param span The span to report the error at.
* \param msg The message to attach.
*
* TODO(@jroesch): replace the ostream with an interface for rendering errors.
*/
// TODO(@jroesch): replace the ostream with an interface for rendering errors.
TVM_DLL void ReportAt(std::ostream& out, const Span& span, const std::string& msg) const;
};

Expand Down
1 change: 1 addition & 0 deletions include/tvm/relay/adt.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ class Match : public Expr {
* \param data the input being deconstructed.
* \param clauses The clauses for matching.
* \param complete Indicate if this match is complete.
* \param span The span of the expression.
*/
TVM_DLL Match(Expr data, tvm::Array<Clause> clauses, bool complete = true, Span span = Span());

Expand Down
1 change: 1 addition & 0 deletions include/tvm/relay/function.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class Function : public BaseFunc {
* \param ret_type The return type of the function.
* \param ty_params The type parameters.
* \param attrs Additional function attributes.
* \param span The span of the function.
*/
TVM_DLL Function(tvm::Array<Var> params, Expr body, Type ret_type, tvm::Array<TypeVar> ty_params,
tvm::DictAttrs attrs = NullValue<DictAttrs>(), Span span = Span());
Expand Down

0 comments on commit d66d0c7

Please sign in to comment.