mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
error message for record update and missing module
This commit is contained in:
parent
27317110f2
commit
331a8ed5eb
8 changed files with 153 additions and 8 deletions
|
@ -1,3 +1,4 @@
|
|||
use inlinable_string::InlinableString;
|
||||
use roc_module::ident::Ident;
|
||||
use roc_module::ident::{Lowercase, TagName, Uppercase};
|
||||
use roc_module::symbol::{Interns, ModuleId, Symbol};
|
||||
|
@ -297,6 +298,10 @@ impl<'a> RocDocAllocator<'a> {
|
|||
.annotate(Annotation::Module)
|
||||
}
|
||||
|
||||
pub fn inlinable_string(&'a self, s: InlinableString) -> DocBuilder<'a, Self, Annotation> {
|
||||
self.text(format!("{}", s)).annotate(Annotation::Module)
|
||||
}
|
||||
|
||||
pub fn binop(
|
||||
&'a self,
|
||||
content: roc_module::operator::BinOp,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue