Skip to content

Commit 7ec8f5b

Browse files
committed
also mark fully_implemented
1 parent bca2c4a commit 7ec8f5b

File tree

1 file changed

+7
-1
lines changed
  • crates/artifacts/solc/src/ast

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,11 @@ ast_node!(
175175
#[serde(rename = "contractKind")]
176176
kind: ContractKind,
177177
documentation: Option<Documentation>,
178-
fully_implemented: bool,
178+
// Not available when "stopAfter": "parsing" is specified.
179+
fully_implemented: Option<bool>,
179180
linearized_base_contracts: Vec<usize>,
180181
nodes: Vec<ContractDefinitionPart>,
182+
// Not available when "stopAfter": "parsing" is specified.
181183
scope: Option<usize>,
182184
#[serde(default, deserialize_with = "serde_helpers::default_for_null")]
183185
used_errors: Vec<usize>,
@@ -536,6 +538,7 @@ ast_node!(
536538
#[serde(default)]
537539
mutability: Option<Mutability>,
538540
overrides: Option<OverrideSpecifier>,
541+
// Not available when "stopAfter": "parsing" is specified.
539542
scope: Option<usize>,
540543
storage_location: StorageLocation,
541544
type_descriptions: TypeDescriptions,
@@ -713,6 +716,7 @@ ast_node!(
713716
overrides: Option<OverrideSpecifier>,
714717
parameters: ParameterList,
715718
return_parameters: ParameterList,
719+
// Not available when "stopAfter": "parsing" is specified.
716720
scope: Option<usize>,
717721
visibility: Visibility,
718722
/// The kind of function this node defines. Only valid for Solidity versions 0.5.x and
@@ -1028,6 +1032,7 @@ ast_node!(
10281032
name_location: Option<SourceLocation>,
10291033
canonical_name: String,
10301034
members: Vec<VariableDeclaration>,
1035+
// Not available when "stopAfter": "parsing" is specified.
10311036
scope: Option<usize>,
10321037
visibility: Visibility,
10331038
}
@@ -1082,6 +1087,7 @@ ast_node!(
10821087
file: String,
10831088
#[serde(default, with = "serde_helpers::display_from_str_opt")]
10841089
name_location: Option<SourceLocation>,
1090+
// Not available when "stopAfter": "parsing" is specified.
10851091
scope: Option<usize>,
10861092
source_unit: usize,
10871093
symbol_aliases: Vec<SymbolAlias>,

0 commit comments

Comments
 (0)