Put back, fix ()-output optimization
This commit is contained in:
parent
8081096a7f
commit
6f9a460fef
@ -170,6 +170,7 @@ impl Serialize for IndexItemFunctionType {
|
|||||||
_ => seq.serialize_element(&self.inputs)?,
|
_ => seq.serialize_element(&self.inputs)?,
|
||||||
}
|
}
|
||||||
match &self.output[..] {
|
match &self.output[..] {
|
||||||
|
[] => {}
|
||||||
[one] if one.generics.is_none() => seq.serialize_element(one)?,
|
[one] if one.generics.is_none() => seq.serialize_element(one)?,
|
||||||
_ => seq.serialize_element(&self.output)?,
|
_ => seq.serialize_element(&self.output)?,
|
||||||
}
|
}
|
||||||
|
@ -1910,7 +1910,7 @@ function initSearch(rawSearchIndex) {
|
|||||||
output = buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA], lowercasePaths);
|
output = buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA], lowercasePaths);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
output = null;
|
output = [];
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
inputs, output,
|
inputs, output,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user