Skip to content

Commit bca2c4a

Browse files
committed
scope is optional for stopAfter: parsing
1 parent 61ef8a3 commit bca2c4a

File tree

1 file changed

+5
-5
lines changed
  • crates/artifacts/solc/src/ast

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ ast_node!(
178178
fully_implemented: bool,
179179
linearized_base_contracts: Vec<usize>,
180180
nodes: Vec<ContractDefinitionPart>,
181-
scope: usize,
181+
scope: Option<usize>,
182182
#[serde(default, deserialize_with = "serde_helpers::default_for_null")]
183183
used_errors: Vec<usize>,
184184
#[serde(default, deserialize_with = "serde_helpers::default_for_null")]
@@ -536,7 +536,7 @@ ast_node!(
536536
#[serde(default)]
537537
mutability: Option<Mutability>,
538538
overrides: Option<OverrideSpecifier>,
539-
scope: usize,
539+
scope: Option<usize>,
540540
storage_location: StorageLocation,
541541
type_descriptions: TypeDescriptions,
542542
type_name: Option<TypeName>,
@@ -713,7 +713,7 @@ ast_node!(
713713
overrides: Option<OverrideSpecifier>,
714714
parameters: ParameterList,
715715
return_parameters: ParameterList,
716-
scope: usize,
716+
scope: Option<usize>,
717717
visibility: Visibility,
718718
/// The kind of function this node defines. Only valid for Solidity versions 0.5.x and
719719
/// above.
@@ -1028,7 +1028,7 @@ ast_node!(
10281028
name_location: Option<SourceLocation>,
10291029
canonical_name: String,
10301030
members: Vec<VariableDeclaration>,
1031-
scope: usize,
1031+
scope: Option<usize>,
10321032
visibility: Visibility,
10331033
}
10341034
);
@@ -1082,7 +1082,7 @@ ast_node!(
10821082
file: String,
10831083
#[serde(default, with = "serde_helpers::display_from_str_opt")]
10841084
name_location: Option<SourceLocation>,
1085-
scope: usize,
1085+
scope: Option<usize>,
10861086
source_unit: usize,
10871087
symbol_aliases: Vec<SymbolAlias>,
10881088
unit_alias: String,

0 commit comments

Comments
 (0)