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 extra::ModuleExtra;
use token::Token; use token::Token;
#[allow(dead_code)]
enum DefinitionOrExtra { enum DefinitionOrExtra {
Definition(Box<ast::UntypedDefinition>), Definition(Box<ast::UntypedDefinition>),
ModuleComment(Span), ModuleComment(Span),

View File

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

View File

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