This commit is contained in:
evan-schott 2024-04-09 11:52:19 -07:00
parent 1ac7f7f67c
commit e47ddb458e
6 changed files with 5 additions and 8 deletions

View File

@ -17,7 +17,7 @@
use crate::{Location, Type};
use serde::{Deserialize, Serialize};
use std::{fmt};
use std::fmt;
/// A future type consisting of the type of the inputs.
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]

View File

@ -115,8 +115,7 @@ impl ParserContext<'_> {
// Parse the body of the program scope.
let mut consts: Vec<(Symbol, ConstDeclaration)> = Vec::new();
let (mut transitions, mut functions): (Vec<(Symbol, Function)>, Vec<(Symbol, Function)>) =
(Vec::new(), Vec::new());
let (mut transitions, mut functions) = (Vec::new(), Vec::new());
let mut structs: Vec<(Symbol, Composite)> = Vec::new();
let mut mappings: Vec<(Symbol, Mapping)> = Vec::new();

View File

@ -33,7 +33,6 @@ use leo_ast::{
LocatorExpression,
MemberAccess,
MethodCall,
Node,
StructExpression,
TernaryExpression,
TupleExpression,

View File

@ -18,7 +18,7 @@ pub mod assigner;
pub use assigner::*;
pub mod tree_node;
pub use tree_node::*;
pub use tree_node::ConditionalTreeNode;
pub mod graph;
pub use graph::*;

View File

@ -28,7 +28,6 @@ use leo_ast::{
Type,
};
impl ExpressionReconstructor for Destructurer<'_> {
type AdditionalOutput = Vec<Statement>;

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::{ConditionalTreeNode, TreeNode};
use crate::{ConditionalTreeNode};
use indexmap::IndexSet;
use leo_ast::Identifier;
use leo_errors::TypeCheckerWarning;
@ -55,7 +55,7 @@ impl AwaitChecker {
if futures.is_empty() {
self.to_await = Vec::new();
} else {
self.to_await = vec![TreeNode::new(futures.clone())];
self.to_await = vec![ConditionalTreeNode::new(futures.clone())];
}
self.static_to_await = futures;
}