Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch JS code to ES6 - part 2 #96390

Merged
merged 7 commits into from
Apr 30, 2022
Merged
Show file tree
Hide file tree
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
17 changes: 10 additions & 7 deletions src/librustdoc/html/static/js/externs.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
// This file contains type definitions that are processed by the Closure Compiler but are
// not put into the JavaScript we include as part of the documentation. It is used for
// type checking. See README.md in this directory for more info.
/* eslint-env es6 */
/* eslint no-var: "error" */
/* eslint prefer-const: "error" */

/* eslint-disable */
var searchState;
let searchState;
function initSearch(searchIndex){}

/**
Expand All @@ -15,7 +18,7 @@ function initSearch(searchIndex){}
* generics: Array<QueryElement>,
* }}
*/
var QueryElement;
let QueryElement;

/**
* @typedef {{
Expand All @@ -25,7 +28,7 @@ var QueryElement;
* userQuery: string,
* }}
*/
var ParserState;
let ParserState;

/**
* @typedef {{
Expand All @@ -38,7 +41,7 @@ var ParserState;
* foundElems: number,
* }}
*/
var ParsedQuery;
let ParsedQuery;

/**
* @typedef {{
Expand All @@ -53,7 +56,7 @@ var ParsedQuery;
* type: (Array<?>|null)
* }}
*/
var Row;
let Row;

/**
* @typedef {{
Expand All @@ -63,7 +66,7 @@ var Row;
* query: ParsedQuery,
* }}
*/
var ResultsTable;
let ResultsTable;

/**
* @typedef {{
Expand All @@ -80,4 +83,4 @@ var ResultsTable;
* ty: number,
* }}
*/
var Results;
let Results;
Loading