mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-31 01:11:06 +00:00
Fix too much newlines
This commit is contained in:
parent
22f92af124
commit
90f172a34f
@ -566,14 +566,9 @@ impl<'src> GetArgumentPossibilities<'src> for weedle::common::Identifier<'src> {
|
|||||||
if let Some(other) = record.typedefs.get(&self.0) {
|
if let Some(other) = record.typedefs.get(&self.0) {
|
||||||
other.get_argument_possibilities(record)
|
other.get_argument_possibilities(record)
|
||||||
} else {
|
} else {
|
||||||
Some(
|
let syn_type = self.to_syn_type(record, TypePosition::Argument)?;
|
||||||
vec![
|
let type_name = self.get_type_name(record);
|
||||||
(
|
Some(vec![(syn_type, type_name)])
|
||||||
self.to_syn_type(record, TypePosition::Argument)?,
|
|
||||||
self.get_type_name(record),
|
|
||||||
)
|
|
||||||
]
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -583,14 +578,9 @@ impl<'src> GetArgumentPossibilities<'src> for NonAnyType<'src> {
|
|||||||
if let NonAnyType::Identifier(identifier) = self {
|
if let NonAnyType::Identifier(identifier) = self {
|
||||||
identifier.get_argument_possibilities(record)
|
identifier.get_argument_possibilities(record)
|
||||||
} else {
|
} else {
|
||||||
Some(
|
let syn_type = self.to_syn_type(record, TypePosition::Argument)?;
|
||||||
vec![
|
let type_name = self.get_type_name(record);
|
||||||
(
|
Some(vec![(syn_type, type_name)])
|
||||||
self.to_syn_type(record, TypePosition::Argument)?,
|
|
||||||
self.get_type_name(record),
|
|
||||||
)
|
|
||||||
]
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -600,14 +590,9 @@ impl<'src> GetArgumentPossibilities<'src> for SingleType<'src> {
|
|||||||
if let SingleType::NonAny(non_any) = self {
|
if let SingleType::NonAny(non_any) = self {
|
||||||
non_any.get_argument_possibilities(record)
|
non_any.get_argument_possibilities(record)
|
||||||
} else {
|
} else {
|
||||||
Some(
|
let syn_type = self.to_syn_type(record, TypePosition::Argument)?;
|
||||||
vec![
|
let type_name = self.get_type_name(record);
|
||||||
(
|
Some(vec![(syn_type, type_name)])
|
||||||
self.to_syn_type(record, TypePosition::Argument)?,
|
|
||||||
self.get_type_name(record),
|
|
||||||
)
|
|
||||||
]
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user