Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions crates/artifacts/solc/src/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,14 @@ ast_node!(
#[serde(rename = "contractKind")]
kind: ContractKind,
documentation: Option<Documentation>,
fully_implemented: bool,
// Not available when "stopAfter": "parsing" is specified.
fully_implemented: Option<bool>,
// Not available when "stopAfter": "parsing" is specified.
#[serde(default)]
linearized_base_contracts: Vec<usize>,
nodes: Vec<ContractDefinitionPart>,
scope: usize,
// Not available when "stopAfter": "parsing" is specified.
scope: Option<usize>,
#[serde(default, deserialize_with = "serde_helpers::default_for_null")]
used_errors: Vec<usize>,
#[serde(default, deserialize_with = "serde_helpers::default_for_null")]
Expand Down Expand Up @@ -536,7 +540,8 @@ ast_node!(
#[serde(default)]
mutability: Option<Mutability>,
overrides: Option<OverrideSpecifier>,
scope: usize,
// Not available when "stopAfter": "parsing" is specified.
scope: Option<usize>,
storage_location: StorageLocation,
type_descriptions: TypeDescriptions,
type_name: Option<TypeName>,
Expand Down Expand Up @@ -713,7 +718,8 @@ ast_node!(
overrides: Option<OverrideSpecifier>,
parameters: ParameterList,
return_parameters: ParameterList,
scope: usize,
// Not available when "stopAfter": "parsing" is specified.
scope: Option<usize>,
visibility: Visibility,
/// The kind of function this node defines. Only valid for Solidity versions 0.5.x and
/// above.
Expand Down Expand Up @@ -1028,7 +1034,8 @@ ast_node!(
name_location: Option<SourceLocation>,
canonical_name: String,
members: Vec<VariableDeclaration>,
scope: usize,
// Not available when "stopAfter": "parsing" is specified.
scope: Option<usize>,
visibility: Visibility,
}
);
Expand Down Expand Up @@ -1082,7 +1089,8 @@ ast_node!(
file: String,
#[serde(default, with = "serde_helpers::display_from_str_opt")]
name_location: Option<SourceLocation>,
scope: usize,
// Not available when "stopAfter": "parsing" is specified.
scope: Option<usize>,
source_unit: usize,
symbol_aliases: Vec<SymbolAlias>,
unit_alias: String,
Expand Down