chore: all dead code till we sort out doc comments

This commit is contained in:
rvcas 2022-11-05 18:20:23 -04:00
parent 7092673c45
commit 3a653b6624
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
3 changed files with 8 additions and 10 deletions

View File

@ -15,6 +15,7 @@ use error::ParseError;
use extra::ModuleExtra;
use token::Token;
#[allow(dead_code)]
enum DefinitionOrExtra {
Definition(Box<ast::UntypedDefinition>),
ModuleComment(Span),

View File

@ -50,10 +50,10 @@ pub enum Token {
RArrow, // '->'
DotDot, // '..'
EndOfFile,
// Extra
CommentNormal,
CommentDoc,
CommentModule,
// Docs/Extra
Comment,
DocComment,
ModuleComment,
EmptyLine,
// Keywords (alphabetically):
As,
@ -124,9 +124,9 @@ impl fmt::Display for Token {
Token::RArrow => "->",
Token::DotDot => "..",
Token::EndOfFile => "EOF",
Token::CommentNormal => "//",
Token::CommentDoc => "///",
Token::CommentModule => "////",
Token::Comment => "//",
Token::DocComment => "///",
Token::ModuleComment => "////",
Token::EmptyLine => "EMPTYLINE",
Token::As => "as",
Token::Assert => "assert",

View File

@ -2,9 +2,6 @@ use sample/context
pub type Mint {
currency_symbol: ByteArray,
thing: Int,
thing: Int,
thing: Int,
}
pub type ScriptContext =