mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-19 16:01:23 +00:00
Minor tweaks to first_pass.rs
Nothing much of consequence
This commit is contained in:
@ -206,7 +206,7 @@ fn first_pass_operation<'src>(
|
|||||||
first_pass_operation_type: FirstPassOperationType,
|
first_pass_operation_type: FirstPassOperationType,
|
||||||
self_name: &'src str,
|
self_name: &'src str,
|
||||||
ids: &[OperationId<'src>],
|
ids: &[OperationId<'src>],
|
||||||
arguments: &[Argument<'src>],
|
arguments: &'src [Argument<'src>],
|
||||||
) {
|
) {
|
||||||
let mut names = Vec::with_capacity(arguments.len());
|
let mut names = Vec::with_capacity(arguments.len());
|
||||||
for argument in arguments {
|
for argument in arguments {
|
||||||
@ -601,12 +601,7 @@ impl<'src> FirstPass<'src, ()> for weedle::NamespaceDefinition<'src> {
|
|||||||
record
|
record
|
||||||
.namespaces
|
.namespaces
|
||||||
.entry(self.identifier.0)
|
.entry(self.identifier.0)
|
||||||
.or_insert_with(||
|
.or_default();
|
||||||
NamespaceData {
|
|
||||||
members: Default::default(),
|
|
||||||
operations: Default::default(),
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
for member in &self.members.body {
|
for member in &self.members.body {
|
||||||
member.first_pass(record, self.identifier.0)?;
|
member.first_pass(record, self.identifier.0)?;
|
||||||
|
Reference in New Issue
Block a user