Skip to content

Commit 20cf2d9

Browse files
committed
add deprecated Index node
1 parent 7d246ff commit 20cf2d9

File tree

1 file changed

+9
-2
lines changed
  • crates/artifacts/vyper/src/ast

1 file changed

+9
-2
lines changed

crates/artifacts/vyper/src/ast/mod.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ vyper_node!(
114114
struct Import {
115115
alias: Option<String>,
116116
name: String,
117-
import_info: ImportInfo,
117+
import_info: Option<ImportInfo>,
118118
}
119119
);
120120

121121
vyper_node!(
122122
struct ImportFrom {
123123
alias: Option<String>,
124124
name: String,
125-
import_info: ImportInfo,
125+
import_info: Option<ImportInfo>,
126126
module: Option<String>,
127127
level: u32,
128128
}
@@ -286,6 +286,7 @@ node_group!(
286286
HexBytes,
287287
NameConstant,
288288
Ellipsis,
289+
Index,
289290

290291
// Collections
291292
List,
@@ -392,6 +393,12 @@ vyper_node!(
392393
}
393394
);
394395

396+
vyper_node!(
397+
struct Index {
398+
value: Box<Expression>,
399+
}
400+
);
401+
395402
vyper_node!(
396403
struct List {
397404
elements: Vec<Expression>,

0 commit comments

Comments
 (0)