coc-pyright 1.1.282 → 1.1.283
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +858 -719
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -1375,14 +1375,14 @@ var require_lru_cache = __commonJS({
|
|
|
1375
1375
|
// node_modules/semver/classes/range.js
|
|
1376
1376
|
var require_range = __commonJS({
|
|
1377
1377
|
"node_modules/semver/classes/range.js"(exports, module2) {
|
|
1378
|
-
var
|
|
1378
|
+
var Range15 = class {
|
|
1379
1379
|
constructor(range, options) {
|
|
1380
1380
|
options = parseOptions(options);
|
|
1381
|
-
if (range instanceof
|
|
1381
|
+
if (range instanceof Range15) {
|
|
1382
1382
|
if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
|
|
1383
1383
|
return range;
|
|
1384
1384
|
} else {
|
|
1385
|
-
return new
|
|
1385
|
+
return new Range15(range.raw, options);
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
1388
|
if (range instanceof Comparator) {
|
|
@@ -1465,7 +1465,7 @@ var require_range = __commonJS({
|
|
|
1465
1465
|
return result;
|
|
1466
1466
|
}
|
|
1467
1467
|
intersects(range, options) {
|
|
1468
|
-
if (!(range instanceof
|
|
1468
|
+
if (!(range instanceof Range15)) {
|
|
1469
1469
|
throw new TypeError("a Range is required");
|
|
1470
1470
|
}
|
|
1471
1471
|
return this.set.some((thisComparators) => {
|
|
@@ -1497,7 +1497,7 @@ var require_range = __commonJS({
|
|
|
1497
1497
|
return false;
|
|
1498
1498
|
}
|
|
1499
1499
|
};
|
|
1500
|
-
module2.exports =
|
|
1500
|
+
module2.exports = Range15;
|
|
1501
1501
|
var LRU = require_lru_cache();
|
|
1502
1502
|
var cache = new LRU({ max: 1e3 });
|
|
1503
1503
|
var parseOptions = require_parse_options();
|
|
@@ -1806,12 +1806,12 @@ var require_comparator = __commonJS({
|
|
|
1806
1806
|
if (this.value === "") {
|
|
1807
1807
|
return true;
|
|
1808
1808
|
}
|
|
1809
|
-
return new
|
|
1809
|
+
return new Range15(comp.value, options).test(this.value);
|
|
1810
1810
|
} else if (comp.operator === "") {
|
|
1811
1811
|
if (comp.value === "") {
|
|
1812
1812
|
return true;
|
|
1813
1813
|
}
|
|
1814
|
-
return new
|
|
1814
|
+
return new Range15(this.value, options).test(comp.semver);
|
|
1815
1815
|
}
|
|
1816
1816
|
const sameDirectionIncreasing = (this.operator === ">=" || this.operator === ">") && (comp.operator === ">=" || comp.operator === ">");
|
|
1817
1817
|
const sameDirectionDecreasing = (this.operator === "<=" || this.operator === "<") && (comp.operator === "<=" || comp.operator === "<");
|
|
@@ -1828,17 +1828,17 @@ var require_comparator = __commonJS({
|
|
|
1828
1828
|
var cmp = require_cmp();
|
|
1829
1829
|
var debug = require_debug();
|
|
1830
1830
|
var SemVer2 = require_semver();
|
|
1831
|
-
var
|
|
1831
|
+
var Range15 = require_range();
|
|
1832
1832
|
}
|
|
1833
1833
|
});
|
|
1834
1834
|
|
|
1835
1835
|
// node_modules/semver/functions/satisfies.js
|
|
1836
1836
|
var require_satisfies = __commonJS({
|
|
1837
1837
|
"node_modules/semver/functions/satisfies.js"(exports, module2) {
|
|
1838
|
-
var
|
|
1838
|
+
var Range15 = require_range();
|
|
1839
1839
|
var satisfies = (version, range, options) => {
|
|
1840
1840
|
try {
|
|
1841
|
-
range = new
|
|
1841
|
+
range = new Range15(range, options);
|
|
1842
1842
|
} catch (er) {
|
|
1843
1843
|
return false;
|
|
1844
1844
|
}
|
|
@@ -1851,8 +1851,8 @@ var require_satisfies = __commonJS({
|
|
|
1851
1851
|
// node_modules/semver/ranges/to-comparators.js
|
|
1852
1852
|
var require_to_comparators = __commonJS({
|
|
1853
1853
|
"node_modules/semver/ranges/to-comparators.js"(exports, module2) {
|
|
1854
|
-
var
|
|
1855
|
-
var toComparators = (range, options) => new
|
|
1854
|
+
var Range15 = require_range();
|
|
1855
|
+
var toComparators = (range, options) => new Range15(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1856
1856
|
module2.exports = toComparators;
|
|
1857
1857
|
}
|
|
1858
1858
|
});
|
|
@@ -1861,13 +1861,13 @@ var require_to_comparators = __commonJS({
|
|
|
1861
1861
|
var require_max_satisfying = __commonJS({
|
|
1862
1862
|
"node_modules/semver/ranges/max-satisfying.js"(exports, module2) {
|
|
1863
1863
|
var SemVer2 = require_semver();
|
|
1864
|
-
var
|
|
1864
|
+
var Range15 = require_range();
|
|
1865
1865
|
var maxSatisfying = (versions, range, options) => {
|
|
1866
1866
|
let max = null;
|
|
1867
1867
|
let maxSV = null;
|
|
1868
1868
|
let rangeObj = null;
|
|
1869
1869
|
try {
|
|
1870
|
-
rangeObj = new
|
|
1870
|
+
rangeObj = new Range15(range, options);
|
|
1871
1871
|
} catch (er) {
|
|
1872
1872
|
return null;
|
|
1873
1873
|
}
|
|
@@ -1889,13 +1889,13 @@ var require_max_satisfying = __commonJS({
|
|
|
1889
1889
|
var require_min_satisfying = __commonJS({
|
|
1890
1890
|
"node_modules/semver/ranges/min-satisfying.js"(exports, module2) {
|
|
1891
1891
|
var SemVer2 = require_semver();
|
|
1892
|
-
var
|
|
1892
|
+
var Range15 = require_range();
|
|
1893
1893
|
var minSatisfying = (versions, range, options) => {
|
|
1894
1894
|
let min = null;
|
|
1895
1895
|
let minSV = null;
|
|
1896
1896
|
let rangeObj = null;
|
|
1897
1897
|
try {
|
|
1898
|
-
rangeObj = new
|
|
1898
|
+
rangeObj = new Range15(range, options);
|
|
1899
1899
|
} catch (er) {
|
|
1900
1900
|
return null;
|
|
1901
1901
|
}
|
|
@@ -1917,10 +1917,10 @@ var require_min_satisfying = __commonJS({
|
|
|
1917
1917
|
var require_min_version = __commonJS({
|
|
1918
1918
|
"node_modules/semver/ranges/min-version.js"(exports, module2) {
|
|
1919
1919
|
var SemVer2 = require_semver();
|
|
1920
|
-
var
|
|
1920
|
+
var Range15 = require_range();
|
|
1921
1921
|
var gt = require_gt();
|
|
1922
1922
|
var minVersion = (range, loose) => {
|
|
1923
|
-
range = new
|
|
1923
|
+
range = new Range15(range, loose);
|
|
1924
1924
|
let minver = new SemVer2("0.0.0");
|
|
1925
1925
|
if (range.test(minver)) {
|
|
1926
1926
|
return minver;
|
|
@@ -1972,10 +1972,10 @@ var require_min_version = __commonJS({
|
|
|
1972
1972
|
// node_modules/semver/ranges/valid.js
|
|
1973
1973
|
var require_valid2 = __commonJS({
|
|
1974
1974
|
"node_modules/semver/ranges/valid.js"(exports, module2) {
|
|
1975
|
-
var
|
|
1975
|
+
var Range15 = require_range();
|
|
1976
1976
|
var validRange = (range, options) => {
|
|
1977
1977
|
try {
|
|
1978
|
-
return new
|
|
1978
|
+
return new Range15(range, options).range || "*";
|
|
1979
1979
|
} catch (er) {
|
|
1980
1980
|
return null;
|
|
1981
1981
|
}
|
|
@@ -1990,7 +1990,7 @@ var require_outside = __commonJS({
|
|
|
1990
1990
|
var SemVer2 = require_semver();
|
|
1991
1991
|
var Comparator = require_comparator();
|
|
1992
1992
|
var { ANY } = Comparator;
|
|
1993
|
-
var
|
|
1993
|
+
var Range15 = require_range();
|
|
1994
1994
|
var satisfies = require_satisfies();
|
|
1995
1995
|
var gt = require_gt();
|
|
1996
1996
|
var lt2 = require_lt();
|
|
@@ -1998,7 +1998,7 @@ var require_outside = __commonJS({
|
|
|
1998
1998
|
var gte = require_gte();
|
|
1999
1999
|
var outside = (version, range, hilo, options) => {
|
|
2000
2000
|
version = new SemVer2(version, options);
|
|
2001
|
-
range = new
|
|
2001
|
+
range = new Range15(range, options);
|
|
2002
2002
|
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
2003
2003
|
switch (hilo) {
|
|
2004
2004
|
case ">":
|
|
@@ -2073,10 +2073,10 @@ var require_ltr = __commonJS({
|
|
|
2073
2073
|
// node_modules/semver/ranges/intersects.js
|
|
2074
2074
|
var require_intersects = __commonJS({
|
|
2075
2075
|
"node_modules/semver/ranges/intersects.js"(exports, module2) {
|
|
2076
|
-
var
|
|
2076
|
+
var Range15 = require_range();
|
|
2077
2077
|
var intersects = (r1, r2, options) => {
|
|
2078
|
-
r1 = new
|
|
2079
|
-
r2 = new
|
|
2078
|
+
r1 = new Range15(r1, options);
|
|
2079
|
+
r2 = new Range15(r2, options);
|
|
2080
2080
|
return r1.intersects(r2);
|
|
2081
2081
|
};
|
|
2082
2082
|
module2.exports = intersects;
|
|
@@ -2135,7 +2135,7 @@ var require_simplify = __commonJS({
|
|
|
2135
2135
|
// node_modules/semver/ranges/subset.js
|
|
2136
2136
|
var require_subset = __commonJS({
|
|
2137
2137
|
"node_modules/semver/ranges/subset.js"(exports, module2) {
|
|
2138
|
-
var
|
|
2138
|
+
var Range15 = require_range();
|
|
2139
2139
|
var Comparator = require_comparator();
|
|
2140
2140
|
var { ANY } = Comparator;
|
|
2141
2141
|
var satisfies = require_satisfies();
|
|
@@ -2144,8 +2144,8 @@ var require_subset = __commonJS({
|
|
|
2144
2144
|
if (sub === dom) {
|
|
2145
2145
|
return true;
|
|
2146
2146
|
}
|
|
2147
|
-
sub = new
|
|
2148
|
-
dom = new
|
|
2147
|
+
sub = new Range15(sub, options);
|
|
2148
|
+
dom = new Range15(dom, options);
|
|
2149
2149
|
let sawNonNull = false;
|
|
2150
2150
|
OUTER:
|
|
2151
2151
|
for (const simpleSub of sub.set) {
|
|
@@ -5927,18 +5927,18 @@ var require_textRange = __commonJS({
|
|
|
5927
5927
|
}
|
|
5928
5928
|
Position11.print = print;
|
|
5929
5929
|
})(Position10 = exports.Position || (exports.Position = {}));
|
|
5930
|
-
var
|
|
5931
|
-
(function(
|
|
5930
|
+
var Range15;
|
|
5931
|
+
(function(Range16) {
|
|
5932
5932
|
function is(value) {
|
|
5933
5933
|
const candidate = value;
|
|
5934
5934
|
return candidate && candidate.start !== void 0 && candidate.end !== void 0;
|
|
5935
5935
|
}
|
|
5936
|
-
|
|
5936
|
+
Range16.is = is;
|
|
5937
5937
|
function print(value) {
|
|
5938
5938
|
return `${Position10.print(value.start)}-${Position10.print(value.end)}`;
|
|
5939
5939
|
}
|
|
5940
|
-
|
|
5941
|
-
})(
|
|
5940
|
+
Range16.print = print;
|
|
5941
|
+
})(Range15 = exports.Range || (exports.Range = {}));
|
|
5942
5942
|
function comparePositions(a, b) {
|
|
5943
5943
|
if (a.line < b.line) {
|
|
5944
5944
|
return -1;
|
|
@@ -10088,7 +10088,7 @@ var require_diagnostic = __commonJS({
|
|
|
10088
10088
|
}
|
|
10089
10089
|
}
|
|
10090
10090
|
exports.convertLevelToCategory = convertLevelToCategory;
|
|
10091
|
-
var
|
|
10091
|
+
var Diagnostic5 = class {
|
|
10092
10092
|
constructor(category, message, range) {
|
|
10093
10093
|
this.category = category;
|
|
10094
10094
|
this.message = message;
|
|
@@ -10118,7 +10118,7 @@ var require_diagnostic = __commonJS({
|
|
|
10118
10118
|
return this._relatedInfo;
|
|
10119
10119
|
}
|
|
10120
10120
|
};
|
|
10121
|
-
exports.Diagnostic =
|
|
10121
|
+
exports.Diagnostic = Diagnostic5;
|
|
10122
10122
|
var DiagnosticAddendum = class {
|
|
10123
10123
|
constructor() {
|
|
10124
10124
|
this._messages = [];
|
|
@@ -11710,7 +11710,6 @@ var require_messageReader = __commonJS({
|
|
|
11710
11710
|
var ResolvedMessageReaderOptions;
|
|
11711
11711
|
(function(ResolvedMessageReaderOptions2) {
|
|
11712
11712
|
function fromOptions(options) {
|
|
11713
|
-
var _a;
|
|
11714
11713
|
let charset;
|
|
11715
11714
|
let result;
|
|
11716
11715
|
let contentDecoder;
|
|
@@ -11718,9 +11717,9 @@ var require_messageReader = __commonJS({
|
|
|
11718
11717
|
let contentTypeDecoder;
|
|
11719
11718
|
const contentTypeDecoders = /* @__PURE__ */ new Map();
|
|
11720
11719
|
if (options === void 0 || typeof options === "string") {
|
|
11721
|
-
charset = options
|
|
11720
|
+
charset = options ?? "utf-8";
|
|
11722
11721
|
} else {
|
|
11723
|
-
charset =
|
|
11722
|
+
charset = options.charset ?? "utf-8";
|
|
11724
11723
|
if (options.contentDecoder !== void 0) {
|
|
11725
11724
|
contentDecoder = options.contentDecoder;
|
|
11726
11725
|
contentDecoders.set(contentDecoder.name, contentDecoder);
|
|
@@ -11963,11 +11962,10 @@ var require_messageWriter = __commonJS({
|
|
|
11963
11962
|
var ResolvedMessageWriterOptions;
|
|
11964
11963
|
(function(ResolvedMessageWriterOptions2) {
|
|
11965
11964
|
function fromOptions(options) {
|
|
11966
|
-
var _a, _b;
|
|
11967
11965
|
if (options === void 0 || typeof options === "string") {
|
|
11968
|
-
return { charset: options
|
|
11966
|
+
return { charset: options ?? "utf-8", contentTypeEncoder: (0, ral_1.default)().applicationJson.encoder };
|
|
11969
11967
|
} else {
|
|
11970
|
-
return { charset:
|
|
11968
|
+
return { charset: options.charset ?? "utf-8", contentEncoder: options.contentEncoder, contentTypeEncoder: options.contentTypeEncoder ?? (0, ral_1.default)().applicationJson.encoder };
|
|
11971
11969
|
}
|
|
11972
11970
|
}
|
|
11973
11971
|
ResolvedMessageWriterOptions2.fromOptions = fromOptions;
|
|
@@ -12515,7 +12513,6 @@ var require_connection = __commonJS({
|
|
|
12515
12513
|
}
|
|
12516
12514
|
};
|
|
12517
12515
|
function handleRequest(requestMessage) {
|
|
12518
|
-
var _a;
|
|
12519
12516
|
if (isDisposed()) {
|
|
12520
12517
|
return;
|
|
12521
12518
|
}
|
|
@@ -12563,7 +12560,7 @@ var require_connection = __commonJS({
|
|
|
12563
12560
|
}
|
|
12564
12561
|
const startTime = Date.now();
|
|
12565
12562
|
if (requestHandler || starRequestHandler) {
|
|
12566
|
-
const tokenKey =
|
|
12563
|
+
const tokenKey = requestMessage.id ?? String(Date.now());
|
|
12567
12564
|
const cancellationSource = cancellationStrategy.receiver.createCancellationTokenSource(tokenKey);
|
|
12568
12565
|
if (requestMessage.id !== null && knownCanceledRequests.has(requestMessage.id)) {
|
|
12569
12566
|
cancellationSource.cancel();
|
|
@@ -14059,7 +14056,7 @@ var init_main2 = __esm({
|
|
|
14059
14056
|
}
|
|
14060
14057
|
Position10.is = is;
|
|
14061
14058
|
})(Position || (Position = {}));
|
|
14062
|
-
(function(
|
|
14059
|
+
(function(Range15) {
|
|
14063
14060
|
function create(one, two, three, four) {
|
|
14064
14061
|
if (Is.uinteger(one) && Is.uinteger(two) && Is.uinteger(three) && Is.uinteger(four)) {
|
|
14065
14062
|
return { start: Position.create(one, two), end: Position.create(three, four) };
|
|
@@ -14069,12 +14066,12 @@ var init_main2 = __esm({
|
|
|
14069
14066
|
throw new Error("Range#create called with invalid arguments[".concat(one, ", ").concat(two, ", ").concat(three, ", ").concat(four, "]"));
|
|
14070
14067
|
}
|
|
14071
14068
|
}
|
|
14072
|
-
|
|
14069
|
+
Range15.create = create;
|
|
14073
14070
|
function is(value) {
|
|
14074
14071
|
var candidate = value;
|
|
14075
14072
|
return Is.objectLiteral(candidate) && Position.is(candidate.start) && Position.is(candidate.end);
|
|
14076
14073
|
}
|
|
14077
|
-
|
|
14074
|
+
Range15.is = is;
|
|
14078
14075
|
})(Range || (Range = {}));
|
|
14079
14076
|
(function(Location2) {
|
|
14080
14077
|
function create(uri, range) {
|
|
@@ -14206,7 +14203,7 @@ var init_main2 = __esm({
|
|
|
14206
14203
|
}
|
|
14207
14204
|
CodeDescription2.is = is;
|
|
14208
14205
|
})(CodeDescription || (CodeDescription = {}));
|
|
14209
|
-
(function(
|
|
14206
|
+
(function(Diagnostic5) {
|
|
14210
14207
|
function create(range, message, severity, code, source, relatedInformation) {
|
|
14211
14208
|
var result = { range, message };
|
|
14212
14209
|
if (Is.defined(severity)) {
|
|
@@ -14223,13 +14220,13 @@ var init_main2 = __esm({
|
|
|
14223
14220
|
}
|
|
14224
14221
|
return result;
|
|
14225
14222
|
}
|
|
14226
|
-
|
|
14223
|
+
Diagnostic5.create = create;
|
|
14227
14224
|
function is(value) {
|
|
14228
14225
|
var _a;
|
|
14229
14226
|
var candidate = value;
|
|
14230
14227
|
return Is.defined(candidate) && Range.is(candidate.range) && Is.string(candidate.message) && (Is.number(candidate.severity) || Is.undefined(candidate.severity)) && (Is.integer(candidate.code) || Is.string(candidate.code) || Is.undefined(candidate.code)) && (Is.undefined(candidate.codeDescription) || Is.string((_a = candidate.codeDescription) === null || _a === void 0 ? void 0 : _a.href)) && (Is.string(candidate.source) || Is.undefined(candidate.source)) && (Is.undefined(candidate.relatedInformation) || Is.typedArray(candidate.relatedInformation, DiagnosticRelatedInformation.is));
|
|
14231
14228
|
}
|
|
14232
|
-
|
|
14229
|
+
Diagnostic5.is = is;
|
|
14233
14230
|
})(Diagnostic || (Diagnostic = {}));
|
|
14234
14231
|
(function(Command2) {
|
|
14235
14232
|
function create(title, command) {
|
|
@@ -14250,24 +14247,24 @@ var init_main2 = __esm({
|
|
|
14250
14247
|
}
|
|
14251
14248
|
Command2.is = is;
|
|
14252
14249
|
})(Command || (Command = {}));
|
|
14253
|
-
(function(
|
|
14250
|
+
(function(TextEdit10) {
|
|
14254
14251
|
function replace(range, newText) {
|
|
14255
14252
|
return { range, newText };
|
|
14256
14253
|
}
|
|
14257
|
-
|
|
14254
|
+
TextEdit10.replace = replace;
|
|
14258
14255
|
function insert(position, newText) {
|
|
14259
14256
|
return { range: { start: position, end: position }, newText };
|
|
14260
14257
|
}
|
|
14261
|
-
|
|
14258
|
+
TextEdit10.insert = insert;
|
|
14262
14259
|
function del(range) {
|
|
14263
14260
|
return { range, newText: "" };
|
|
14264
14261
|
}
|
|
14265
|
-
|
|
14262
|
+
TextEdit10.del = del;
|
|
14266
14263
|
function is(value) {
|
|
14267
14264
|
var candidate = value;
|
|
14268
14265
|
return Is.objectLiteral(candidate) && Is.string(candidate.newText) && Range.is(candidate.range);
|
|
14269
14266
|
}
|
|
14270
|
-
|
|
14267
|
+
TextEdit10.is = is;
|
|
14271
14268
|
})(TextEdit || (TextEdit = {}));
|
|
14272
14269
|
(function(ChangeAnnotation2) {
|
|
14273
14270
|
function create(label, needsConfirmation, description) {
|
|
@@ -14388,7 +14385,7 @@ var init_main2 = __esm({
|
|
|
14388
14385
|
}
|
|
14389
14386
|
DeleteFile2.is = is;
|
|
14390
14387
|
})(DeleteFile || (DeleteFile = {}));
|
|
14391
|
-
(function(
|
|
14388
|
+
(function(WorkspaceEdit3) {
|
|
14392
14389
|
function is(value) {
|
|
14393
14390
|
var candidate = value;
|
|
14394
14391
|
return candidate && (candidate.changes !== void 0 || candidate.documentChanges !== void 0) && (candidate.documentChanges === void 0 || candidate.documentChanges.every(function(change) {
|
|
@@ -14399,7 +14396,7 @@ var init_main2 = __esm({
|
|
|
14399
14396
|
}
|
|
14400
14397
|
}));
|
|
14401
14398
|
}
|
|
14402
|
-
|
|
14399
|
+
WorkspaceEdit3.is = is;
|
|
14403
14400
|
})(WorkspaceEdit || (WorkspaceEdit = {}));
|
|
14404
14401
|
TextEditChangeImpl = function() {
|
|
14405
14402
|
function TextEditChangeImpl2(edits, changeAnnotations) {
|
|
@@ -14934,16 +14931,16 @@ var init_main2 = __esm({
|
|
|
14934
14931
|
}
|
|
14935
14932
|
DocumentSymbol2.is = is;
|
|
14936
14933
|
})(DocumentSymbol || (DocumentSymbol = {}));
|
|
14937
|
-
(function(
|
|
14938
|
-
|
|
14939
|
-
|
|
14940
|
-
|
|
14941
|
-
|
|
14942
|
-
|
|
14943
|
-
|
|
14944
|
-
|
|
14945
|
-
|
|
14946
|
-
|
|
14934
|
+
(function(CodeActionKind4) {
|
|
14935
|
+
CodeActionKind4.Empty = "";
|
|
14936
|
+
CodeActionKind4.QuickFix = "quickfix";
|
|
14937
|
+
CodeActionKind4.Refactor = "refactor";
|
|
14938
|
+
CodeActionKind4.RefactorExtract = "refactor.extract";
|
|
14939
|
+
CodeActionKind4.RefactorInline = "refactor.inline";
|
|
14940
|
+
CodeActionKind4.RefactorRewrite = "refactor.rewrite";
|
|
14941
|
+
CodeActionKind4.Source = "source";
|
|
14942
|
+
CodeActionKind4.SourceOrganizeImports = "source.organizeImports";
|
|
14943
|
+
CodeActionKind4.SourceFixAll = "source.fixAll";
|
|
14947
14944
|
})(CodeActionKind || (CodeActionKind = {}));
|
|
14948
14945
|
(function(CodeActionTriggerKind2) {
|
|
14949
14946
|
CodeActionTriggerKind2.Invoked = 1;
|
|
@@ -20062,10 +20059,13 @@ var require_pathUtils = __commonJS({
|
|
|
20062
20059
|
exports.isFile = isFile;
|
|
20063
20060
|
function tryStat(fs6, path13) {
|
|
20064
20061
|
try {
|
|
20065
|
-
|
|
20062
|
+
if (fs6.existsSync(path13)) {
|
|
20063
|
+
return fs6.statSync(path13);
|
|
20064
|
+
}
|
|
20066
20065
|
} catch (e) {
|
|
20067
20066
|
return void 0;
|
|
20068
20067
|
}
|
|
20068
|
+
return void 0;
|
|
20069
20069
|
}
|
|
20070
20070
|
exports.tryStat = tryStat;
|
|
20071
20071
|
function tryRealpath(fs6, path13) {
|
|
@@ -22679,13 +22679,14 @@ var require_docStringConversion = __commonJS({
|
|
|
22679
22679
|
this._eatLine();
|
|
22680
22680
|
return;
|
|
22681
22681
|
}
|
|
22682
|
-
|
|
22682
|
+
const prev = this._lineAt(this._lineNum - 1);
|
|
22683
|
+
if (this._currentLineIsOutsideBlock() && _isUndefinedOrWhitespace(prev)) {
|
|
22683
22684
|
this._trimOutputAndAppendLine("```");
|
|
22684
22685
|
this._appendLine();
|
|
22685
22686
|
this._popState();
|
|
22686
22687
|
return;
|
|
22687
22688
|
}
|
|
22688
|
-
this._appendLine(this.
|
|
22689
|
+
this._appendLine(this._currentLine());
|
|
22689
22690
|
this._eatLine();
|
|
22690
22691
|
}
|
|
22691
22692
|
_parseLiteralBlockSingleLine() {
|
|
@@ -23767,6 +23768,7 @@ var require_types = __commonJS({
|
|
|
23767
23768
|
category: specEntry.category,
|
|
23768
23769
|
name: specEntry.name,
|
|
23769
23770
|
hasDefault: specEntry.hasDefault,
|
|
23771
|
+
defaultValueExpression: specEntry.defaultValueExpression,
|
|
23770
23772
|
isNameSynthesized: specEntry.isNameSynthesized,
|
|
23771
23773
|
hasDeclaredType: true,
|
|
23772
23774
|
type: specEntry.type
|
|
@@ -23828,6 +23830,7 @@ var require_types = __commonJS({
|
|
|
23828
23830
|
category: specEntry.category,
|
|
23829
23831
|
name: specEntry.name,
|
|
23830
23832
|
hasDefault: specEntry.hasDefault,
|
|
23833
|
+
defaultValueExpression: specEntry.defaultValueExpression,
|
|
23831
23834
|
isNameSynthesized: specEntry.isNameSynthesized,
|
|
23832
23835
|
hasDeclaredType: true,
|
|
23833
23836
|
type: specEntry.type
|
|
@@ -26408,6 +26411,7 @@ var require_typeUtils = __commonJS({
|
|
|
26408
26411
|
category: param.category,
|
|
26409
26412
|
name: param.name,
|
|
26410
26413
|
hasDefault: !!param.hasDefault,
|
|
26414
|
+
defaultValueExpression: param.defaultValueExpression,
|
|
26411
26415
|
isNameSynthesized: param.isNameSynthesized,
|
|
26412
26416
|
type: types_1.FunctionType.getEffectiveParameterType(typeArgFunctionType, paramIndex)
|
|
26413
26417
|
});
|
|
@@ -27099,6 +27103,7 @@ var require_typeUtils = __commonJS({
|
|
|
27099
27103
|
category: entry.category,
|
|
27100
27104
|
name: entry.name,
|
|
27101
27105
|
hasDefault: entry.hasDefault,
|
|
27106
|
+
defaultValueExpression: entry.defaultValueExpression,
|
|
27102
27107
|
isNameSynthesized: entry.isNameSynthesized,
|
|
27103
27108
|
hasDeclaredType: true,
|
|
27104
27109
|
type: entry.type
|
|
@@ -28943,535 +28948,535 @@ var require_localize = __commonJS({
|
|
|
28943
28948
|
}
|
|
28944
28949
|
var Localizer;
|
|
28945
28950
|
(function(Localizer2) {
|
|
28946
|
-
let
|
|
28947
|
-
(function(
|
|
28948
|
-
|
|
28949
|
-
|
|
28950
|
-
|
|
28951
|
-
|
|
28952
|
-
|
|
28953
|
-
|
|
28954
|
-
|
|
28955
|
-
|
|
28956
|
-
|
|
28957
|
-
|
|
28958
|
-
|
|
28959
|
-
|
|
28960
|
-
|
|
28961
|
-
|
|
28962
|
-
|
|
28963
|
-
|
|
28964
|
-
|
|
28965
|
-
|
|
28966
|
-
|
|
28967
|
-
|
|
28968
|
-
|
|
28969
|
-
|
|
28970
|
-
|
|
28971
|
-
|
|
28972
|
-
|
|
28973
|
-
|
|
28974
|
-
|
|
28975
|
-
|
|
28976
|
-
|
|
28977
|
-
|
|
28978
|
-
|
|
28979
|
-
|
|
28980
|
-
|
|
28981
|
-
|
|
28982
|
-
|
|
28983
|
-
|
|
28984
|
-
|
|
28985
|
-
|
|
28986
|
-
|
|
28987
|
-
|
|
28988
|
-
|
|
28989
|
-
|
|
28990
|
-
|
|
28991
|
-
|
|
28992
|
-
|
|
28993
|
-
|
|
28994
|
-
|
|
28995
|
-
|
|
28996
|
-
|
|
28997
|
-
|
|
28998
|
-
|
|
28999
|
-
|
|
29000
|
-
|
|
29001
|
-
|
|
29002
|
-
|
|
29003
|
-
|
|
29004
|
-
|
|
29005
|
-
|
|
29006
|
-
|
|
29007
|
-
|
|
29008
|
-
|
|
29009
|
-
|
|
29010
|
-
|
|
29011
|
-
|
|
29012
|
-
|
|
29013
|
-
|
|
29014
|
-
|
|
29015
|
-
|
|
29016
|
-
|
|
29017
|
-
|
|
29018
|
-
|
|
29019
|
-
|
|
29020
|
-
|
|
29021
|
-
|
|
29022
|
-
|
|
29023
|
-
|
|
29024
|
-
|
|
29025
|
-
|
|
29026
|
-
|
|
29027
|
-
|
|
29028
|
-
|
|
29029
|
-
|
|
29030
|
-
|
|
29031
|
-
|
|
29032
|
-
|
|
29033
|
-
|
|
29034
|
-
|
|
29035
|
-
|
|
29036
|
-
|
|
29037
|
-
|
|
29038
|
-
|
|
29039
|
-
|
|
29040
|
-
|
|
29041
|
-
|
|
29042
|
-
|
|
29043
|
-
|
|
29044
|
-
|
|
29045
|
-
|
|
29046
|
-
|
|
29047
|
-
|
|
29048
|
-
|
|
29049
|
-
|
|
29050
|
-
|
|
29051
|
-
|
|
29052
|
-
|
|
29053
|
-
|
|
29054
|
-
|
|
29055
|
-
|
|
29056
|
-
|
|
29057
|
-
|
|
29058
|
-
|
|
29059
|
-
|
|
29060
|
-
|
|
29061
|
-
|
|
29062
|
-
|
|
29063
|
-
|
|
29064
|
-
|
|
29065
|
-
|
|
29066
|
-
|
|
29067
|
-
|
|
29068
|
-
|
|
29069
|
-
|
|
29070
|
-
|
|
29071
|
-
|
|
29072
|
-
|
|
29073
|
-
|
|
29074
|
-
|
|
29075
|
-
|
|
29076
|
-
|
|
29077
|
-
|
|
29078
|
-
|
|
29079
|
-
|
|
29080
|
-
|
|
29081
|
-
|
|
29082
|
-
|
|
29083
|
-
|
|
29084
|
-
|
|
29085
|
-
|
|
29086
|
-
|
|
29087
|
-
|
|
29088
|
-
|
|
29089
|
-
|
|
29090
|
-
|
|
29091
|
-
|
|
29092
|
-
|
|
29093
|
-
|
|
29094
|
-
|
|
29095
|
-
|
|
29096
|
-
|
|
29097
|
-
|
|
29098
|
-
|
|
29099
|
-
|
|
29100
|
-
|
|
29101
|
-
|
|
29102
|
-
|
|
29103
|
-
|
|
29104
|
-
|
|
29105
|
-
|
|
29106
|
-
|
|
29107
|
-
|
|
29108
|
-
|
|
29109
|
-
|
|
29110
|
-
|
|
29111
|
-
|
|
29112
|
-
|
|
29113
|
-
|
|
29114
|
-
|
|
29115
|
-
|
|
29116
|
-
|
|
29117
|
-
|
|
29118
|
-
|
|
29119
|
-
|
|
29120
|
-
|
|
29121
|
-
|
|
29122
|
-
|
|
29123
|
-
|
|
29124
|
-
|
|
29125
|
-
|
|
29126
|
-
|
|
29127
|
-
|
|
29128
|
-
|
|
29129
|
-
|
|
29130
|
-
|
|
29131
|
-
|
|
29132
|
-
|
|
29133
|
-
|
|
29134
|
-
|
|
29135
|
-
|
|
29136
|
-
|
|
29137
|
-
|
|
29138
|
-
|
|
29139
|
-
|
|
29140
|
-
|
|
29141
|
-
|
|
29142
|
-
|
|
29143
|
-
|
|
29144
|
-
|
|
29145
|
-
|
|
29146
|
-
|
|
29147
|
-
|
|
29148
|
-
|
|
29149
|
-
|
|
29150
|
-
|
|
29151
|
-
|
|
29152
|
-
|
|
29153
|
-
|
|
29154
|
-
|
|
29155
|
-
|
|
29156
|
-
|
|
29157
|
-
|
|
29158
|
-
|
|
29159
|
-
|
|
29160
|
-
|
|
29161
|
-
|
|
29162
|
-
|
|
29163
|
-
|
|
29164
|
-
|
|
29165
|
-
|
|
29166
|
-
|
|
29167
|
-
|
|
29168
|
-
|
|
29169
|
-
|
|
29170
|
-
|
|
29171
|
-
|
|
29172
|
-
|
|
29173
|
-
|
|
29174
|
-
|
|
29175
|
-
|
|
29176
|
-
|
|
29177
|
-
|
|
29178
|
-
|
|
29179
|
-
|
|
29180
|
-
|
|
29181
|
-
|
|
29182
|
-
|
|
29183
|
-
|
|
29184
|
-
|
|
29185
|
-
|
|
29186
|
-
|
|
29187
|
-
|
|
29188
|
-
|
|
29189
|
-
|
|
29190
|
-
|
|
29191
|
-
|
|
29192
|
-
|
|
29193
|
-
|
|
29194
|
-
|
|
29195
|
-
|
|
29196
|
-
|
|
29197
|
-
|
|
29198
|
-
|
|
29199
|
-
|
|
29200
|
-
|
|
29201
|
-
|
|
29202
|
-
|
|
29203
|
-
|
|
29204
|
-
|
|
29205
|
-
|
|
29206
|
-
|
|
29207
|
-
|
|
29208
|
-
|
|
29209
|
-
|
|
29210
|
-
|
|
29211
|
-
|
|
29212
|
-
|
|
29213
|
-
|
|
29214
|
-
|
|
29215
|
-
|
|
29216
|
-
|
|
29217
|
-
|
|
29218
|
-
|
|
29219
|
-
|
|
29220
|
-
|
|
29221
|
-
|
|
29222
|
-
|
|
29223
|
-
|
|
29224
|
-
|
|
29225
|
-
|
|
29226
|
-
|
|
29227
|
-
|
|
29228
|
-
|
|
29229
|
-
|
|
29230
|
-
|
|
29231
|
-
|
|
29232
|
-
|
|
29233
|
-
|
|
29234
|
-
|
|
29235
|
-
|
|
29236
|
-
|
|
29237
|
-
|
|
29238
|
-
|
|
29239
|
-
|
|
29240
|
-
|
|
29241
|
-
|
|
29242
|
-
|
|
29243
|
-
|
|
29244
|
-
|
|
29245
|
-
|
|
29246
|
-
|
|
29247
|
-
|
|
29248
|
-
|
|
29249
|
-
|
|
29250
|
-
|
|
29251
|
-
|
|
29252
|
-
|
|
29253
|
-
|
|
29254
|
-
|
|
29255
|
-
|
|
29256
|
-
|
|
29257
|
-
|
|
29258
|
-
|
|
29259
|
-
|
|
29260
|
-
|
|
29261
|
-
|
|
29262
|
-
|
|
29263
|
-
|
|
29264
|
-
|
|
29265
|
-
|
|
29266
|
-
|
|
29267
|
-
|
|
29268
|
-
|
|
29269
|
-
|
|
29270
|
-
|
|
29271
|
-
|
|
29272
|
-
|
|
29273
|
-
|
|
29274
|
-
|
|
29275
|
-
|
|
29276
|
-
|
|
29277
|
-
|
|
29278
|
-
|
|
29279
|
-
|
|
29280
|
-
|
|
29281
|
-
|
|
29282
|
-
|
|
29283
|
-
|
|
29284
|
-
|
|
29285
|
-
|
|
29286
|
-
|
|
29287
|
-
|
|
29288
|
-
|
|
29289
|
-
|
|
29290
|
-
|
|
29291
|
-
|
|
29292
|
-
|
|
29293
|
-
|
|
29294
|
-
|
|
29295
|
-
|
|
29296
|
-
|
|
29297
|
-
|
|
29298
|
-
|
|
29299
|
-
|
|
29300
|
-
|
|
29301
|
-
|
|
29302
|
-
|
|
29303
|
-
|
|
29304
|
-
|
|
29305
|
-
|
|
29306
|
-
|
|
29307
|
-
|
|
29308
|
-
|
|
29309
|
-
|
|
29310
|
-
|
|
29311
|
-
|
|
29312
|
-
|
|
29313
|
-
|
|
29314
|
-
|
|
29315
|
-
|
|
29316
|
-
|
|
29317
|
-
|
|
29318
|
-
|
|
29319
|
-
|
|
29320
|
-
|
|
29321
|
-
|
|
29322
|
-
|
|
29323
|
-
|
|
29324
|
-
|
|
29325
|
-
|
|
29326
|
-
|
|
29327
|
-
|
|
29328
|
-
|
|
29329
|
-
|
|
29330
|
-
|
|
29331
|
-
|
|
29332
|
-
|
|
29333
|
-
|
|
29334
|
-
|
|
29335
|
-
|
|
29336
|
-
|
|
29337
|
-
|
|
29338
|
-
|
|
29339
|
-
|
|
29340
|
-
|
|
29341
|
-
|
|
29342
|
-
|
|
29343
|
-
|
|
29344
|
-
|
|
29345
|
-
|
|
29346
|
-
|
|
29347
|
-
|
|
29348
|
-
|
|
29349
|
-
|
|
29350
|
-
|
|
29351
|
-
|
|
29352
|
-
|
|
29353
|
-
|
|
29354
|
-
|
|
29355
|
-
|
|
29356
|
-
|
|
29357
|
-
|
|
29358
|
-
|
|
29359
|
-
|
|
29360
|
-
|
|
29361
|
-
|
|
29362
|
-
|
|
29363
|
-
|
|
29364
|
-
|
|
29365
|
-
|
|
29366
|
-
|
|
29367
|
-
|
|
29368
|
-
|
|
29369
|
-
|
|
29370
|
-
|
|
29371
|
-
|
|
29372
|
-
|
|
29373
|
-
|
|
29374
|
-
|
|
29375
|
-
|
|
29376
|
-
|
|
29377
|
-
|
|
29378
|
-
|
|
29379
|
-
|
|
29380
|
-
|
|
29381
|
-
|
|
29382
|
-
|
|
29383
|
-
|
|
29384
|
-
|
|
29385
|
-
|
|
29386
|
-
|
|
29387
|
-
|
|
29388
|
-
|
|
29389
|
-
|
|
29390
|
-
|
|
29391
|
-
|
|
29392
|
-
|
|
29393
|
-
|
|
29394
|
-
|
|
29395
|
-
|
|
29396
|
-
|
|
29397
|
-
|
|
29398
|
-
|
|
29399
|
-
|
|
29400
|
-
|
|
29401
|
-
|
|
29402
|
-
|
|
29403
|
-
|
|
29404
|
-
|
|
29405
|
-
|
|
29406
|
-
|
|
29407
|
-
|
|
29408
|
-
|
|
29409
|
-
|
|
29410
|
-
|
|
29411
|
-
|
|
29412
|
-
|
|
29413
|
-
|
|
29414
|
-
|
|
29415
|
-
|
|
29416
|
-
|
|
29417
|
-
|
|
29418
|
-
|
|
29419
|
-
|
|
29420
|
-
|
|
29421
|
-
|
|
29422
|
-
|
|
29423
|
-
|
|
29424
|
-
|
|
29425
|
-
|
|
29426
|
-
|
|
29427
|
-
|
|
29428
|
-
|
|
29429
|
-
|
|
29430
|
-
|
|
29431
|
-
|
|
29432
|
-
|
|
29433
|
-
|
|
29434
|
-
|
|
29435
|
-
|
|
29436
|
-
|
|
29437
|
-
|
|
29438
|
-
|
|
29439
|
-
|
|
29440
|
-
|
|
29441
|
-
|
|
29442
|
-
|
|
29443
|
-
|
|
29444
|
-
|
|
29445
|
-
|
|
29446
|
-
|
|
29447
|
-
|
|
29448
|
-
|
|
29449
|
-
|
|
29450
|
-
|
|
29451
|
-
|
|
29452
|
-
|
|
29453
|
-
|
|
29454
|
-
|
|
29455
|
-
|
|
29456
|
-
|
|
29457
|
-
|
|
29458
|
-
|
|
29459
|
-
|
|
29460
|
-
|
|
29461
|
-
|
|
29462
|
-
|
|
29463
|
-
|
|
29464
|
-
|
|
29465
|
-
|
|
29466
|
-
|
|
29467
|
-
|
|
29468
|
-
|
|
29469
|
-
|
|
29470
|
-
|
|
29471
|
-
|
|
29472
|
-
|
|
29473
|
-
|
|
29474
|
-
})(
|
|
28951
|
+
let Diagnostic5;
|
|
28952
|
+
(function(Diagnostic6) {
|
|
28953
|
+
Diagnostic6.annotatedParamCountMismatch = () => new ParameterizedString(getRawString("Diagnostic.annotatedParamCountMismatch"));
|
|
28954
|
+
Diagnostic6.annotatedTypeArgMissing = () => getRawString("Diagnostic.annotatedTypeArgMissing");
|
|
28955
|
+
Diagnostic6.annotationFormatString = () => getRawString("Diagnostic.annotationFormatString");
|
|
28956
|
+
Diagnostic6.annotationNotSupported = () => getRawString("Diagnostic.annotationNotSupported");
|
|
28957
|
+
Diagnostic6.annotationSpansStrings = () => getRawString("Diagnostic.annotationSpansStrings");
|
|
28958
|
+
Diagnostic6.annotationStringEscape = () => getRawString("Diagnostic.annotationStringEscape");
|
|
28959
|
+
Diagnostic6.argAssignment = () => new ParameterizedString(getRawString("Diagnostic.argAssignment"));
|
|
28960
|
+
Diagnostic6.argAssignmentFunction = () => new ParameterizedString(getRawString("Diagnostic.argAssignmentFunction"));
|
|
28961
|
+
Diagnostic6.argAssignmentParam = () => new ParameterizedString(getRawString("Diagnostic.argAssignmentParam"));
|
|
28962
|
+
Diagnostic6.argAssignmentParamFunction = () => new ParameterizedString(getRawString("Diagnostic.argAssignmentParamFunction"));
|
|
28963
|
+
Diagnostic6.argMissingForParam = () => new ParameterizedString(getRawString("Diagnostic.argMissingForParam"));
|
|
28964
|
+
Diagnostic6.argMissingForParams = () => new ParameterizedString(getRawString("Diagnostic.argMissingForParams"));
|
|
28965
|
+
Diagnostic6.argMorePositionalExpectedCount = () => new ParameterizedString(getRawString("Diagnostic.argMorePositionalExpectedCount"));
|
|
28966
|
+
Diagnostic6.argMorePositionalExpectedOne = () => getRawString("Diagnostic.argMorePositionalExpectedOne");
|
|
28967
|
+
Diagnostic6.argPositional = () => getRawString("Diagnostic.argPositional");
|
|
28968
|
+
Diagnostic6.argPositionalExpectedCount = () => new ParameterizedString(getRawString("Diagnostic.argPositionalExpectedCount"));
|
|
28969
|
+
Diagnostic6.argPositionalExpectedOne = () => getRawString("Diagnostic.argPositionalExpectedOne");
|
|
28970
|
+
Diagnostic6.argTypePartiallyUnknown = () => getRawString("Diagnostic.argTypePartiallyUnknown");
|
|
28971
|
+
Diagnostic6.argTypeUnknown = () => getRawString("Diagnostic.argTypeUnknown");
|
|
28972
|
+
Diagnostic6.assertAlwaysTrue = () => getRawString("Diagnostic.assertAlwaysTrue");
|
|
28973
|
+
Diagnostic6.assertTypeArgs = () => getRawString("Diagnostic.assertTypeArgs");
|
|
28974
|
+
Diagnostic6.assertTypeTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.assertTypeTypeMismatch"));
|
|
28975
|
+
Diagnostic6.assignmentExprContext = () => getRawString("Diagnostic.assignmentExprContext");
|
|
28976
|
+
Diagnostic6.assignmentExprComprehension = () => new ParameterizedString(getRawString("Diagnostic.assignmentExprComprehension"));
|
|
28977
|
+
Diagnostic6.assignmentExprInSubscript = () => getRawString("Diagnostic.assignmentExprInSubscript");
|
|
28978
|
+
Diagnostic6.assignmentInProtocol = () => getRawString("Diagnostic.assignmentInProtocol");
|
|
28979
|
+
Diagnostic6.assignmentTargetExpr = () => getRawString("Diagnostic.assignmentTargetExpr");
|
|
28980
|
+
Diagnostic6.asyncNotInAsyncFunction = () => getRawString("Diagnostic.asyncNotInAsyncFunction");
|
|
28981
|
+
Diagnostic6.awaitIllegal = () => getRawString("Diagnostic.awaitIllegal");
|
|
28982
|
+
Diagnostic6.awaitNotInAsync = () => getRawString("Diagnostic.awaitNotInAsync");
|
|
28983
|
+
Diagnostic6.backticksIllegal = () => getRawString("Diagnostic.backticksIllegal");
|
|
28984
|
+
Diagnostic6.baseClassCircular = () => getRawString("Diagnostic.baseClassCircular");
|
|
28985
|
+
Diagnostic6.baseClassInvalid = () => getRawString("Diagnostic.baseClassInvalid");
|
|
28986
|
+
Diagnostic6.baseClassFinal = () => new ParameterizedString(getRawString("Diagnostic.baseClassFinal"));
|
|
28987
|
+
Diagnostic6.baseClassMethodTypeIncompatible = () => new ParameterizedString(getRawString("Diagnostic.baseClassMethodTypeIncompatible"));
|
|
28988
|
+
Diagnostic6.baseClassVariableTypeIncompatible = () => new ParameterizedString(getRawString("Diagnostic.baseClassVariableTypeIncompatible"));
|
|
28989
|
+
Diagnostic6.baseClassUnknown = () => getRawString("Diagnostic.baseClassUnknown");
|
|
28990
|
+
Diagnostic6.bindTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.bindTypeMismatch"));
|
|
28991
|
+
Diagnostic6.breakOutsideLoop = () => getRawString("Diagnostic.breakOutsideLoop");
|
|
28992
|
+
Diagnostic6.callableExtraArgs = () => getRawString("Diagnostic.callableExtraArgs");
|
|
28993
|
+
Diagnostic6.callableFirstArg = () => getRawString("Diagnostic.callableFirstArg");
|
|
28994
|
+
Diagnostic6.callableSecondArg = () => getRawString("Diagnostic.callableSecondArg");
|
|
28995
|
+
Diagnostic6.casePatternIsIrrefutable = () => getRawString("Diagnostic.casePatternIsIrrefutable");
|
|
28996
|
+
Diagnostic6.classAlreadySpecialized = () => new ParameterizedString(getRawString("Diagnostic.classAlreadySpecialized"));
|
|
28997
|
+
Diagnostic6.classDecoratorTypeUnknown = () => getRawString("Diagnostic.classDecoratorTypeUnknown");
|
|
28998
|
+
Diagnostic6.classDefinitionCycle = () => new ParameterizedString(getRawString("Diagnostic.classDefinitionCycle"));
|
|
28999
|
+
Diagnostic6.classGetItemClsParam = () => getRawString("Diagnostic.classGetItemClsParam");
|
|
29000
|
+
Diagnostic6.classMethodClsParam = () => getRawString("Diagnostic.classMethodClsParam");
|
|
29001
|
+
Diagnostic6.classNotRuntimeSubscriptable = () => new ParameterizedString(getRawString("Diagnostic.classNotRuntimeSubscriptable"));
|
|
29002
|
+
Diagnostic6.classPatternBuiltInArgCount = () => getRawString("Diagnostic.classPatternBuiltInArgCount");
|
|
29003
|
+
Diagnostic6.classPatternBuiltInArgPositional = () => getRawString("Diagnostic.classPatternBuiltInArgPositional");
|
|
29004
|
+
Diagnostic6.classPatternTypeAlias = () => new ParameterizedString(getRawString("Diagnostic.classPatternTypeAlias"));
|
|
29005
|
+
Diagnostic6.classTypeParametersIllegal = () => getRawString("Diagnostic.classTypeParametersIllegal");
|
|
29006
|
+
Diagnostic6.classVarNotAllowed = () => getRawString("Diagnostic.classVarNotAllowed");
|
|
29007
|
+
Diagnostic6.classVarFirstArgMissing = () => getRawString("Diagnostic.classVarFirstArgMissing");
|
|
29008
|
+
Diagnostic6.classVarOverridesInstanceVar = () => new ParameterizedString(getRawString("Diagnostic.classVarOverridesInstanceVar"));
|
|
29009
|
+
Diagnostic6.classVarTooManyArgs = () => getRawString("Diagnostic.classVarTooManyArgs");
|
|
29010
|
+
Diagnostic6.classVarWithTypeVar = () => getRawString("Diagnostic.classVarWithTypeVar");
|
|
29011
|
+
Diagnostic6.clsSelfParamTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.clsSelfParamTypeMismatch"));
|
|
29012
|
+
Diagnostic6.codeTooComplexToAnalyze = () => getRawString("Diagnostic.codeTooComplexToAnalyze");
|
|
29013
|
+
Diagnostic6.collectionAliasInstantiation = () => new ParameterizedString(getRawString("Diagnostic.collectionAliasInstantiation"));
|
|
29014
|
+
Diagnostic6.comparisonAlwaysFalse = () => new ParameterizedString(getRawString("Diagnostic.comparisonAlwaysFalse"));
|
|
29015
|
+
Diagnostic6.comparisonAlwaysTrue = () => new ParameterizedString(getRawString("Diagnostic.comparisonAlwaysTrue"));
|
|
29016
|
+
Diagnostic6.comprehensionInDict = () => getRawString("Diagnostic.comprehensionInDict");
|
|
29017
|
+
Diagnostic6.comprehensionInSet = () => getRawString("Diagnostic.comprehensionInSet");
|
|
29018
|
+
Diagnostic6.concatenateParamSpecMissing = () => getRawString("Diagnostic.concatenateParamSpecMissing");
|
|
29019
|
+
Diagnostic6.concatenateTypeArgsMissing = () => getRawString("Diagnostic.concatenateTypeArgsMissing");
|
|
29020
|
+
Diagnostic6.constantRedefinition = () => new ParameterizedString(getRawString("Diagnostic.constantRedefinition"));
|
|
29021
|
+
Diagnostic6.constructorNoArgs = () => new ParameterizedString(getRawString("Diagnostic.constructorNoArgs"));
|
|
29022
|
+
Diagnostic6.constructorParametersMismatch = () => new ParameterizedString(getRawString("Diagnostic.constructorParametersMismatch"));
|
|
29023
|
+
Diagnostic6.containmentAlwaysFalse = () => new ParameterizedString(getRawString("Diagnostic.containmentAlwaysFalse"));
|
|
29024
|
+
Diagnostic6.containmentAlwaysTrue = () => new ParameterizedString(getRawString("Diagnostic.containmentAlwaysTrue"));
|
|
29025
|
+
Diagnostic6.continueInFinally = () => getRawString("Diagnostic.continueInFinally");
|
|
29026
|
+
Diagnostic6.continueOutsideLoop = () => getRawString("Diagnostic.continueOutsideLoop");
|
|
29027
|
+
Diagnostic6.dataClassBaseClassFrozen = () => getRawString("Diagnostic.dataClassBaseClassFrozen");
|
|
29028
|
+
Diagnostic6.dataClassBaseClassNotFrozen = () => getRawString("Diagnostic.dataClassBaseClassNotFrozen");
|
|
29029
|
+
Diagnostic6.dataClassFieldWithDefault = () => getRawString("Diagnostic.dataClassFieldWithDefault");
|
|
29030
|
+
Diagnostic6.dataClassFieldWithoutAnnotation = () => getRawString("Diagnostic.dataClassFieldWithoutAnnotation");
|
|
29031
|
+
Diagnostic6.dataClassPostInitParamCount = () => new ParameterizedString(getRawString("Diagnostic.dataClassPostInitParamCount"));
|
|
29032
|
+
Diagnostic6.dataClassPostInitType = () => new ParameterizedString(getRawString("Diagnostic.dataClassPostInitType"));
|
|
29033
|
+
Diagnostic6.dataClassSlotsOverwrite = () => getRawString("Diagnostic.dataClassSlotsOverwrite");
|
|
29034
|
+
Diagnostic6.dataClassTransformExpectedBoolLiteral = () => getRawString("Diagnostic.dataClassTransformExpectedBoolLiteral");
|
|
29035
|
+
Diagnostic6.dataClassTransformFieldSpecifier = () => new ParameterizedString(getRawString("Diagnostic.dataClassTransformFieldSpecifier"));
|
|
29036
|
+
Diagnostic6.dataClassTransformPositionalParam = () => getRawString("Diagnostic.dataClassTransformPositionalParam");
|
|
29037
|
+
Diagnostic6.dataClassTransformUnknownArgument = () => new ParameterizedString(getRawString("Diagnostic.dataClassTransformUnknownArgument"));
|
|
29038
|
+
Diagnostic6.declaredReturnTypePartiallyUnknown = () => new ParameterizedString(getRawString("Diagnostic.declaredReturnTypePartiallyUnknown"));
|
|
29039
|
+
Diagnostic6.declaredReturnTypeUnknown = () => getRawString("Diagnostic.declaredReturnTypeUnknown");
|
|
29040
|
+
Diagnostic6.defaultValueContainsCall = () => getRawString("Diagnostic.defaultValueContainsCall");
|
|
29041
|
+
Diagnostic6.defaultValueNotAllowed = () => getRawString("Diagnostic.defaultValueNotAllowed");
|
|
29042
|
+
Diagnostic6.defaultValueNotEllipsis = () => getRawString("Diagnostic.defaultValueNotEllipsis");
|
|
29043
|
+
Diagnostic6.deprecatedType = () => new ParameterizedString(getRawString("Diagnostic.deprecatedType"));
|
|
29044
|
+
Diagnostic6.dictExpandIllegalInComprehension = () => getRawString("Diagnostic.dictExpandIllegalInComprehension");
|
|
29045
|
+
Diagnostic6.dictInAnnotation = () => getRawString("Diagnostic.dictInAnnotation");
|
|
29046
|
+
Diagnostic6.dictKeyValuePairs = () => getRawString("Diagnostic.dictKeyValuePairs");
|
|
29047
|
+
Diagnostic6.dictUnpackIsNotMapping = () => getRawString("Diagnostic.dictUnpackIsNotMapping");
|
|
29048
|
+
Diagnostic6.delTargetExpr = () => getRawString("Diagnostic.delTargetExpr");
|
|
29049
|
+
Diagnostic6.dunderAllSymbolNotPresent = () => new ParameterizedString(getRawString("Diagnostic.dunderAllSymbolNotPresent"));
|
|
29050
|
+
Diagnostic6.duplicateArgsParam = () => getRawString("Diagnostic.duplicateArgsParam");
|
|
29051
|
+
Diagnostic6.duplicateBaseClass = () => getRawString("Diagnostic.duplicateBaseClass");
|
|
29052
|
+
Diagnostic6.duplicateCatchAll = () => getRawString("Diagnostic.duplicateCatchAll");
|
|
29053
|
+
Diagnostic6.duplicateEnumMember = () => new ParameterizedString(getRawString("Diagnostic.duplicateEnumMember"));
|
|
29054
|
+
Diagnostic6.duplicateGenericAndProtocolBase = () => getRawString("Diagnostic.duplicateGenericAndProtocolBase");
|
|
29055
|
+
Diagnostic6.duplicateImport = () => new ParameterizedString(getRawString("Diagnostic.duplicateImport"));
|
|
29056
|
+
Diagnostic6.duplicateKwargsParam = () => getRawString("Diagnostic.duplicateKwargsParam");
|
|
29057
|
+
Diagnostic6.duplicateKeywordOnly = () => getRawString("Diagnostic.duplicateKeywordOnly");
|
|
29058
|
+
Diagnostic6.duplicateParam = () => new ParameterizedString(getRawString("Diagnostic.duplicateParam"));
|
|
29059
|
+
Diagnostic6.duplicateCapturePatternTarget = () => new ParameterizedString(getRawString("Diagnostic.duplicateCapturePatternTarget"));
|
|
29060
|
+
Diagnostic6.duplicateStarPattern = () => getRawString("Diagnostic.duplicateStarPattern");
|
|
29061
|
+
Diagnostic6.duplicateStarStarPattern = () => getRawString("Diagnostic.duplicateStarStarPattern");
|
|
29062
|
+
Diagnostic6.duplicatePositionOnly = () => getRawString("Diagnostic.duplicatePositionOnly");
|
|
29063
|
+
Diagnostic6.duplicateUnpack = () => getRawString("Diagnostic.duplicateUnpack");
|
|
29064
|
+
Diagnostic6.ellipsisContext = () => getRawString("Diagnostic.ellipsisContext");
|
|
29065
|
+
Diagnostic6.ellipsisSecondArg = () => getRawString("Diagnostic.ellipsisSecondArg");
|
|
29066
|
+
Diagnostic6.enumClassOverride = () => new ParameterizedString(getRawString("Diagnostic.enumClassOverride"));
|
|
29067
|
+
Diagnostic6.exceptionGroupIncompatible = () => getRawString("Diagnostic.exceptionGroupIncompatible");
|
|
29068
|
+
Diagnostic6.exceptionTypeIncorrect = () => new ParameterizedString(getRawString("Diagnostic.exceptionTypeIncorrect"));
|
|
29069
|
+
Diagnostic6.exceptionTypeNotClass = () => new ParameterizedString(getRawString("Diagnostic.exceptionTypeNotClass"));
|
|
29070
|
+
Diagnostic6.exceptionTypeNotInstantiable = () => new ParameterizedString(getRawString("Diagnostic.exceptionTypeNotInstantiable"));
|
|
29071
|
+
Diagnostic6.expectedAfterDecorator = () => getRawString("Diagnostic.expectedAfterDecorator");
|
|
29072
|
+
Diagnostic6.expectedArrow = () => getRawString("Diagnostic.expectedArrow");
|
|
29073
|
+
Diagnostic6.expectedAsAfterException = () => getRawString("Diagnostic.expectedAsAfterException");
|
|
29074
|
+
Diagnostic6.expectedAssignRightHandExpr = () => getRawString("Diagnostic.expectedAssignRightHandExpr");
|
|
29075
|
+
Diagnostic6.expectedBinaryRightHandExpr = () => getRawString("Diagnostic.expectedBinaryRightHandExpr");
|
|
29076
|
+
Diagnostic6.expectedBoolLiteral = () => getRawString("Diagnostic.expectedBoolLiteral");
|
|
29077
|
+
Diagnostic6.expectedCase = () => getRawString("Diagnostic.expectedCase");
|
|
29078
|
+
Diagnostic6.expectedClassName = () => getRawString("Diagnostic.expectedClassName");
|
|
29079
|
+
Diagnostic6.expectedCloseBrace = () => getRawString("Diagnostic.expectedCloseBrace");
|
|
29080
|
+
Diagnostic6.expectedCloseBracket = () => getRawString("Diagnostic.expectedCloseBracket");
|
|
29081
|
+
Diagnostic6.expectedCloseParen = () => getRawString("Diagnostic.expectedCloseParen");
|
|
29082
|
+
Diagnostic6.expectedColon = () => getRawString("Diagnostic.expectedColon");
|
|
29083
|
+
Diagnostic6.expectedComplexNumberLiteral = () => getRawString("Diagnostic.expectedComplexNumberLiteral");
|
|
29084
|
+
Diagnostic6.expectedDecoratorExpr = () => getRawString("Diagnostic.expectedDecoratorExpr");
|
|
29085
|
+
Diagnostic6.expectedDecoratorName = () => getRawString("Diagnostic.expectedDecoratorName");
|
|
29086
|
+
Diagnostic6.expectedDecoratorNewline = () => getRawString("Diagnostic.expectedDecoratorNewline");
|
|
29087
|
+
Diagnostic6.expectedDelExpr = () => getRawString("Diagnostic.expectedDelExpr");
|
|
29088
|
+
Diagnostic6.expectedElse = () => getRawString("Diagnostic.expectedElse");
|
|
29089
|
+
Diagnostic6.expectedEquals = () => getRawString("Diagnostic.expectedEquals");
|
|
29090
|
+
Diagnostic6.expectedExceptionClass = () => getRawString("Diagnostic.expectedExceptionClass");
|
|
29091
|
+
Diagnostic6.expectedExceptionObj = () => getRawString("Diagnostic.expectedExceptionObj");
|
|
29092
|
+
Diagnostic6.expectedExpr = () => getRawString("Diagnostic.expectedExpr");
|
|
29093
|
+
Diagnostic6.expectedImport = () => getRawString("Diagnostic.expectedImport");
|
|
29094
|
+
Diagnostic6.expectedImportAlias = () => getRawString("Diagnostic.expectedImportAlias");
|
|
29095
|
+
Diagnostic6.expectedImportSymbols = () => getRawString("Diagnostic.expectedImportSymbols");
|
|
29096
|
+
Diagnostic6.expectedIdentifier = () => getRawString("Diagnostic.expectedIdentifier");
|
|
29097
|
+
Diagnostic6.expectedIndentedBlock = () => getRawString("Diagnostic.expectedIndentedBlock");
|
|
29098
|
+
Diagnostic6.expectedIn = () => getRawString("Diagnostic.expectedIn");
|
|
29099
|
+
Diagnostic6.expectedInExpr = () => getRawString("Diagnostic.expectedInExpr");
|
|
29100
|
+
Diagnostic6.expectedFunctionAfterAsync = () => getRawString("Diagnostic.expectedFunctionAfterAsync");
|
|
29101
|
+
Diagnostic6.expectedFunctionName = () => getRawString("Diagnostic.expectedFunctionName");
|
|
29102
|
+
Diagnostic6.expectedMemberName = () => getRawString("Diagnostic.expectedMemberName");
|
|
29103
|
+
Diagnostic6.expectedModuleName = () => getRawString("Diagnostic.expectedModuleName");
|
|
29104
|
+
Diagnostic6.expectedNameAfterAs = () => getRawString("Diagnostic.expectedNameAfterAs");
|
|
29105
|
+
Diagnostic6.expectedNamedParameter = () => getRawString("Diagnostic.expectedNamedParameter");
|
|
29106
|
+
Diagnostic6.expectedNewline = () => getRawString("Diagnostic.expectedNewline");
|
|
29107
|
+
Diagnostic6.expectedNewlineOrSemicolon = () => getRawString("Diagnostic.expectedNewlineOrSemicolon");
|
|
29108
|
+
Diagnostic6.expectedOpenParen = () => getRawString("Diagnostic.expectedOpenParen");
|
|
29109
|
+
Diagnostic6.expectedParamName = () => getRawString("Diagnostic.expectedParamName");
|
|
29110
|
+
Diagnostic6.expectedPatternExpr = () => getRawString("Diagnostic.expectedPatternExpr");
|
|
29111
|
+
Diagnostic6.expectedPatternSubjectExpr = () => getRawString("Diagnostic.expectedPatternSubjectExpr");
|
|
29112
|
+
Diagnostic6.expectedPatternValue = () => getRawString("Diagnostic.expectedPatternValue");
|
|
29113
|
+
Diagnostic6.expectedReturnExpr = () => getRawString("Diagnostic.expectedReturnExpr");
|
|
29114
|
+
Diagnostic6.expectedSliceIndex = () => getRawString("Diagnostic.expectedSliceIndex");
|
|
29115
|
+
Diagnostic6.expectedTypeNotString = () => getRawString("Diagnostic.expectedTypeNotString");
|
|
29116
|
+
Diagnostic6.expectedTypeParameterName = () => getRawString("Diagnostic.expectedTypeParameterName");
|
|
29117
|
+
Diagnostic6.expectedYieldExpr = () => getRawString("Diagnostic.expectedYieldExpr");
|
|
29118
|
+
Diagnostic6.finalClassIsAbstract = () => new ParameterizedString(getRawString("Diagnostic.finalClassIsAbstract"));
|
|
29119
|
+
Diagnostic6.finalContext = () => getRawString("Diagnostic.finalContext");
|
|
29120
|
+
Diagnostic6.finalMethodOverride = () => new ParameterizedString(getRawString("Diagnostic.finalMethodOverride"));
|
|
29121
|
+
Diagnostic6.finalReassigned = () => new ParameterizedString(getRawString("Diagnostic.finalReassigned"));
|
|
29122
|
+
Diagnostic6.finalRedeclaration = () => new ParameterizedString(getRawString("Diagnostic.finalRedeclaration"));
|
|
29123
|
+
Diagnostic6.finalRedeclarationBySubclass = () => new ParameterizedString(getRawString("Diagnostic.finalRedeclarationBySubclass"));
|
|
29124
|
+
Diagnostic6.finalTooManyArgs = () => getRawString("Diagnostic.finalTooManyArgs");
|
|
29125
|
+
Diagnostic6.finalUnassigned = () => new ParameterizedString(getRawString("Diagnostic.finalUnassigned"));
|
|
29126
|
+
Diagnostic6.formatStringBrace = () => getRawString("Diagnostic.formatStringBrace");
|
|
29127
|
+
Diagnostic6.formatStringBytes = () => getRawString("Diagnostic.formatStringBytes");
|
|
29128
|
+
Diagnostic6.formatStringEscape = () => getRawString("Diagnostic.formatStringEscape");
|
|
29129
|
+
Diagnostic6.formatStringInPattern = () => getRawString("Diagnostic.formatStringInPattern");
|
|
29130
|
+
Diagnostic6.formatStringIllegal = () => getRawString("Diagnostic.formatStringIllegal");
|
|
29131
|
+
Diagnostic6.formatStringUnicode = () => getRawString("Diagnostic.formatStringUnicode");
|
|
29132
|
+
Diagnostic6.formatStringUnterminated = () => getRawString("Diagnostic.formatStringUnterminated");
|
|
29133
|
+
Diagnostic6.functionDecoratorTypeUnknown = () => getRawString("Diagnostic.functionDecoratorTypeUnknown");
|
|
29134
|
+
Diagnostic6.functionInConditionalExpression = () => getRawString("Diagnostic.functionInConditionalExpression");
|
|
29135
|
+
Diagnostic6.functionTypeParametersIllegal = () => getRawString("Diagnostic.functionTypeParametersIllegal");
|
|
29136
|
+
Diagnostic6.futureImportLocationNotAllowed = () => getRawString("Diagnostic.futureImportLocationNotAllowed");
|
|
29137
|
+
Diagnostic6.generatorAsyncReturnType = () => getRawString("Diagnostic.generatorAsyncReturnType");
|
|
29138
|
+
Diagnostic6.generatorNotParenthesized = () => getRawString("Diagnostic.generatorNotParenthesized");
|
|
29139
|
+
Diagnostic6.generatorSyncReturnType = () => getRawString("Diagnostic.generatorSyncReturnType");
|
|
29140
|
+
Diagnostic6.genericBaseClassNotAllowed = () => getRawString("Diagnostic.genericBaseClassNotAllowed");
|
|
29141
|
+
Diagnostic6.genericClassAssigned = () => getRawString("Diagnostic.genericClassAssigned");
|
|
29142
|
+
Diagnostic6.genericClassDeleted = () => getRawString("Diagnostic.genericClassDeleted");
|
|
29143
|
+
Diagnostic6.genericNotAllowed = () => getRawString("Diagnostic.genericNotAllowed");
|
|
29144
|
+
Diagnostic6.genericTypeAliasBoundTypeVar = () => new ParameterizedString(getRawString("Diagnostic.genericTypeAliasBoundTypeVar"));
|
|
29145
|
+
Diagnostic6.genericTypeArgMissing = () => getRawString("Diagnostic.genericTypeArgMissing");
|
|
29146
|
+
Diagnostic6.genericTypeArgTypeVar = () => getRawString("Diagnostic.genericTypeArgTypeVar");
|
|
29147
|
+
Diagnostic6.genericTypeArgUnique = () => getRawString("Diagnostic.genericTypeArgUnique");
|
|
29148
|
+
Diagnostic6.globalReassignment = () => new ParameterizedString(getRawString("Diagnostic.globalReassignment"));
|
|
29149
|
+
Diagnostic6.globalRedefinition = () => new ParameterizedString(getRawString("Diagnostic.globalRedefinition"));
|
|
29150
|
+
Diagnostic6.implicitStringConcat = () => getRawString("Diagnostic.implicitStringConcat");
|
|
29151
|
+
Diagnostic6.importCycleDetected = () => getRawString("Diagnostic.importCycleDetected");
|
|
29152
|
+
Diagnostic6.importDepthExceeded = () => new ParameterizedString(getRawString("Diagnostic.importDepthExceeded"));
|
|
29153
|
+
Diagnostic6.importResolveFailure = () => new ParameterizedString(getRawString("Diagnostic.importResolveFailure"));
|
|
29154
|
+
Diagnostic6.importSourceResolveFailure = () => new ParameterizedString(getRawString("Diagnostic.importSourceResolveFailure"));
|
|
29155
|
+
Diagnostic6.importSymbolUnknown = () => new ParameterizedString(getRawString("Diagnostic.importSymbolUnknown"));
|
|
29156
|
+
Diagnostic6.incompatibleMethodOverride = () => new ParameterizedString(getRawString("Diagnostic.incompatibleMethodOverride"));
|
|
29157
|
+
Diagnostic6.inconsistentIndent = () => getRawString("Diagnostic.inconsistentIndent");
|
|
29158
|
+
Diagnostic6.inconsistentTabs = () => getRawString("Diagnostic.inconsistentTabs");
|
|
29159
|
+
Diagnostic6.initMustReturnNone = () => getRawString("Diagnostic.initMustReturnNone");
|
|
29160
|
+
Diagnostic6.initSubclassClsParam = () => getRawString("Diagnostic.initSubclassClsParam");
|
|
29161
|
+
Diagnostic6.instanceMethodSelfParam = () => getRawString("Diagnostic.instanceMethodSelfParam");
|
|
29162
|
+
Diagnostic6.instanceVarOverridesClassVar = () => new ParameterizedString(getRawString("Diagnostic.instanceVarOverridesClassVar"));
|
|
29163
|
+
Diagnostic6.instantiateAbstract = () => new ParameterizedString(getRawString("Diagnostic.instantiateAbstract"));
|
|
29164
|
+
Diagnostic6.instantiateProtocol = () => new ParameterizedString(getRawString("Diagnostic.instantiateProtocol"));
|
|
29165
|
+
Diagnostic6.internalBindError = () => new ParameterizedString(getRawString("Diagnostic.internalBindError"));
|
|
29166
|
+
Diagnostic6.internalParseError = () => new ParameterizedString(getRawString("Diagnostic.internalParseError"));
|
|
29167
|
+
Diagnostic6.internalTypeCheckingError = () => new ParameterizedString(getRawString("Diagnostic.internalTypeCheckingError"));
|
|
29168
|
+
Diagnostic6.invalidIdentifierChar = () => getRawString("Diagnostic.invalidIdentifierChar");
|
|
29169
|
+
Diagnostic6.invalidStubStatement = () => getRawString("Diagnostic.invalidStubStatement");
|
|
29170
|
+
Diagnostic6.invalidTokenChars = () => new ParameterizedString(getRawString("Diagnostic.invalidTokenChars"));
|
|
29171
|
+
Diagnostic6.isInstanceInvalidType = () => new ParameterizedString(getRawString("Diagnostic.isInstanceInvalidType"));
|
|
29172
|
+
Diagnostic6.isSubclassInvalidType = () => new ParameterizedString(getRawString("Diagnostic.isSubclassInvalidType"));
|
|
29173
|
+
Diagnostic6.keyValueInSet = () => getRawString("Diagnostic.keyValueInSet");
|
|
29174
|
+
Diagnostic6.keywordArgInTypeArgument = () => getRawString("Diagnostic.keywordArgInTypeArgument");
|
|
29175
|
+
Diagnostic6.keywordOnlyAfterArgs = () => getRawString("Diagnostic.keywordOnlyAfterArgs");
|
|
29176
|
+
Diagnostic6.keywordParameterMissing = () => getRawString("Diagnostic.keywordParameterMissing");
|
|
29177
|
+
Diagnostic6.keywordSubscriptIllegal = () => getRawString("Diagnostic.keywordSubscriptIllegal");
|
|
29178
|
+
Diagnostic6.lambdaReturnTypeUnknown = () => getRawString("Diagnostic.lambdaReturnTypeUnknown");
|
|
29179
|
+
Diagnostic6.lambdaReturnTypePartiallyUnknown = () => new ParameterizedString(getRawString("Diagnostic.lambdaReturnTypePartiallyUnknown"));
|
|
29180
|
+
Diagnostic6.listAssignmentMismatch = () => new ParameterizedString(getRawString("Diagnostic.listAssignmentMismatch"));
|
|
29181
|
+
Diagnostic6.listInAnnotation = () => getRawString("Diagnostic.listInAnnotation");
|
|
29182
|
+
Diagnostic6.literalUnsupportedType = () => getRawString("Diagnostic.literalUnsupportedType");
|
|
29183
|
+
Diagnostic6.literalEmptyArgs = () => getRawString("Diagnostic.literalEmptyArgs");
|
|
29184
|
+
Diagnostic6.literalNotCallable = () => getRawString("Diagnostic.literalNotCallable");
|
|
29185
|
+
Diagnostic6.matchIncompatible = () => getRawString("Diagnostic.matchIncompatible");
|
|
29186
|
+
Diagnostic6.matchIsNotExhaustive = () => getRawString("Diagnostic.matchIsNotExhaustive");
|
|
29187
|
+
Diagnostic6.maxParseDepthExceeded = () => getRawString("Diagnostic.maxParseDepthExceeded");
|
|
29188
|
+
Diagnostic6.memberAccess = () => new ParameterizedString(getRawString("Diagnostic.memberAccess"));
|
|
29189
|
+
Diagnostic6.memberDelete = () => new ParameterizedString(getRawString("Diagnostic.memberDelete"));
|
|
29190
|
+
Diagnostic6.memberSet = () => new ParameterizedString(getRawString("Diagnostic.memberSet"));
|
|
29191
|
+
Diagnostic6.metaclassConflict = () => getRawString("Diagnostic.metaclassConflict");
|
|
29192
|
+
Diagnostic6.metaclassDuplicate = () => getRawString("Diagnostic.metaclassDuplicate");
|
|
29193
|
+
Diagnostic6.metaclassIsGeneric = () => getRawString("Diagnostic.metaclassIsGeneric");
|
|
29194
|
+
Diagnostic6.methodNotDefined = () => new ParameterizedString(getRawString("Diagnostic.methodNotDefined"));
|
|
29195
|
+
Diagnostic6.methodNotDefinedOnType = () => new ParameterizedString(getRawString("Diagnostic.methodNotDefinedOnType"));
|
|
29196
|
+
Diagnostic6.methodOrdering = () => getRawString("Diagnostic.methodOrdering");
|
|
29197
|
+
Diagnostic6.methodOverridden = () => new ParameterizedString(getRawString("Diagnostic.methodOverridden"));
|
|
29198
|
+
Diagnostic6.methodReturnsNonObject = () => new ParameterizedString(getRawString("Diagnostic.methodReturnsNonObject"));
|
|
29199
|
+
Diagnostic6.missingProtocolMembers = () => getRawString("Diagnostic.missingProtocolMembers");
|
|
29200
|
+
Diagnostic6.missingSuperCall = () => new ParameterizedString(getRawString("Diagnostic.missingSuperCall"));
|
|
29201
|
+
Diagnostic6.moduleAsType = () => getRawString("Diagnostic.moduleAsType");
|
|
29202
|
+
Diagnostic6.moduleNotCallable = () => getRawString("Diagnostic.moduleNotCallable");
|
|
29203
|
+
Diagnostic6.moduleUnknownMember = () => new ParameterizedString(getRawString("Diagnostic.moduleUnknownMember"));
|
|
29204
|
+
Diagnostic6.namedExceptAfterCatchAll = () => getRawString("Diagnostic.namedExceptAfterCatchAll");
|
|
29205
|
+
Diagnostic6.namedParamAfterParamSpecArgs = () => new ParameterizedString(getRawString("Diagnostic.namedParamAfterParamSpecArgs"));
|
|
29206
|
+
Diagnostic6.namedTupleEmptyName = () => getRawString("Diagnostic.namedTupleEmptyName");
|
|
29207
|
+
Diagnostic6.namedTupleFirstArg = () => getRawString("Diagnostic.namedTupleFirstArg");
|
|
29208
|
+
Diagnostic6.namedTupleMultipleInheritance = () => getRawString("Diagnostic.namedTupleMultipleInheritance");
|
|
29209
|
+
Diagnostic6.namedTupleNameType = () => getRawString("Diagnostic.namedTupleNameType");
|
|
29210
|
+
Diagnostic6.namedTupleNameUnique = () => getRawString("Diagnostic.namedTupleNameUnique");
|
|
29211
|
+
Diagnostic6.namedTupleNoTypes = () => getRawString("Diagnostic.namedTupleNoTypes");
|
|
29212
|
+
Diagnostic6.namedTupleSecondArg = () => getRawString("Diagnostic.namedTupleSecondArg");
|
|
29213
|
+
Diagnostic6.newClsParam = () => getRawString("Diagnostic.newClsParam");
|
|
29214
|
+
Diagnostic6.newTypeLiteral = () => getRawString("Diagnostic.newTypeLiteral");
|
|
29215
|
+
Diagnostic6.newTypeNotAClass = () => getRawString("Diagnostic.newTypeNotAClass");
|
|
29216
|
+
Diagnostic6.newTypeProtocolClass = () => getRawString("Diagnostic.newTypeProtocolClass");
|
|
29217
|
+
Diagnostic6.nonDefaultAfterDefault = () => getRawString("Diagnostic.nonDefaultAfterDefault");
|
|
29218
|
+
Diagnostic6.noneNotCallable = () => getRawString("Diagnostic.noneNotCallable");
|
|
29219
|
+
Diagnostic6.noneNotIterable = () => getRawString("Diagnostic.noneNotIterable");
|
|
29220
|
+
Diagnostic6.noneNotSubscriptable = () => getRawString("Diagnostic.noneNotSubscriptable");
|
|
29221
|
+
Diagnostic6.noneNotUsableWith = () => getRawString("Diagnostic.noneNotUsableWith");
|
|
29222
|
+
Diagnostic6.noneOperator = () => new ParameterizedString(getRawString("Diagnostic.noneOperator"));
|
|
29223
|
+
Diagnostic6.noneUnknownMember = () => new ParameterizedString(getRawString("Diagnostic.noneUnknownMember"));
|
|
29224
|
+
Diagnostic6.nonLocalNoBinding = () => new ParameterizedString(getRawString("Diagnostic.nonLocalNoBinding"));
|
|
29225
|
+
Diagnostic6.nonLocalReassignment = () => new ParameterizedString(getRawString("Diagnostic.nonLocalReassignment"));
|
|
29226
|
+
Diagnostic6.nonLocalRedefinition = () => new ParameterizedString(getRawString("Diagnostic.nonLocalRedefinition"));
|
|
29227
|
+
Diagnostic6.nonLocalInModule = () => getRawString("Diagnostic.nonLocalInModule");
|
|
29228
|
+
Diagnostic6.noOverload = () => new ParameterizedString(getRawString("Diagnostic.noOverload"));
|
|
29229
|
+
Diagnostic6.noReturnContainsReturn = () => getRawString("Diagnostic.noReturnContainsReturn");
|
|
29230
|
+
Diagnostic6.noReturnContainsYield = () => getRawString("Diagnostic.noReturnContainsYield");
|
|
29231
|
+
Diagnostic6.noReturnReturnsNone = () => getRawString("Diagnostic.noReturnReturnsNone");
|
|
29232
|
+
Diagnostic6.notRequiredArgCount = () => getRawString("Diagnostic.notRequiredArgCount");
|
|
29233
|
+
Diagnostic6.notRequiredNotInTypedDict = () => getRawString("Diagnostic.notRequiredNotInTypedDict");
|
|
29234
|
+
Diagnostic6.objectNotCallable = () => new ParameterizedString(getRawString("Diagnostic.objectNotCallable"));
|
|
29235
|
+
Diagnostic6.obscuredClassDeclaration = () => new ParameterizedString(getRawString("Diagnostic.obscuredClassDeclaration"));
|
|
29236
|
+
Diagnostic6.obscuredFunctionDeclaration = () => new ParameterizedString(getRawString("Diagnostic.obscuredFunctionDeclaration"));
|
|
29237
|
+
Diagnostic6.obscuredMethodDeclaration = () => new ParameterizedString(getRawString("Diagnostic.obscuredMethodDeclaration"));
|
|
29238
|
+
Diagnostic6.obscuredParameterDeclaration = () => new ParameterizedString(getRawString("Diagnostic.obscuredParameterDeclaration"));
|
|
29239
|
+
Diagnostic6.obscuredTypeAliasDeclaration = () => new ParameterizedString(getRawString("Diagnostic.obscuredTypeAliasDeclaration"));
|
|
29240
|
+
Diagnostic6.obscuredVariableDeclaration = () => new ParameterizedString(getRawString("Diagnostic.obscuredVariableDeclaration"));
|
|
29241
|
+
Diagnostic6.operatorLessOrGreaterDeprecated = () => getRawString("Diagnostic.operatorLessOrGreaterDeprecated");
|
|
29242
|
+
Diagnostic6.optionalExtraArgs = () => getRawString("Diagnostic.optionalExtraArgs");
|
|
29243
|
+
Diagnostic6.orPatternIrrefutable = () => getRawString("Diagnostic.orPatternIrrefutable");
|
|
29244
|
+
Diagnostic6.orPatternMissingName = () => getRawString("Diagnostic.orPatternMissingName");
|
|
29245
|
+
Diagnostic6.overlappingOverload = () => new ParameterizedString(getRawString("Diagnostic.overlappingOverload"));
|
|
29246
|
+
Diagnostic6.overloadAbstractMismatch = () => new ParameterizedString(getRawString("Diagnostic.overloadAbstractMismatch"));
|
|
29247
|
+
Diagnostic6.overloadImplementationMismatch = () => new ParameterizedString(getRawString("Diagnostic.overloadImplementationMismatch"));
|
|
29248
|
+
Diagnostic6.overloadReturnTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.overloadReturnTypeMismatch"));
|
|
29249
|
+
Diagnostic6.overloadWithImplementation = () => new ParameterizedString(getRawString("Diagnostic.overloadWithImplementation"));
|
|
29250
|
+
Diagnostic6.overloadWithoutImplementation = () => new ParameterizedString(getRawString("Diagnostic.overloadWithoutImplementation"));
|
|
29251
|
+
Diagnostic6.overrideNotFound = () => new ParameterizedString(getRawString("Diagnostic.overrideNotFound"));
|
|
29252
|
+
Diagnostic6.paramAfterKwargsParam = () => getRawString("Diagnostic.paramAfterKwargsParam");
|
|
29253
|
+
Diagnostic6.paramAlreadyAssigned = () => new ParameterizedString(getRawString("Diagnostic.paramAlreadyAssigned"));
|
|
29254
|
+
Diagnostic6.paramAnnotationMissing = () => new ParameterizedString(getRawString("Diagnostic.paramAnnotationMissing"));
|
|
29255
|
+
Diagnostic6.paramNameMissing = () => new ParameterizedString(getRawString("Diagnostic.paramNameMissing"));
|
|
29256
|
+
Diagnostic6.paramSpecArgsKwargsUsage = () => getRawString("Diagnostic.paramSpecArgsKwargsUsage");
|
|
29257
|
+
Diagnostic6.paramSpecArgsMissing = () => new ParameterizedString(getRawString("Diagnostic.paramSpecArgsMissing"));
|
|
29258
|
+
Diagnostic6.paramSpecArgsUsage = () => getRawString("Diagnostic.paramSpecArgsUsage");
|
|
29259
|
+
Diagnostic6.paramSpecAssignedName = () => new ParameterizedString(getRawString("Diagnostic.paramSpecAssignedName"));
|
|
29260
|
+
Diagnostic6.paramSpecContext = () => getRawString("Diagnostic.paramSpecContext");
|
|
29261
|
+
Diagnostic6.paramSpecDefaultNotTuple = () => getRawString("Diagnostic.paramSpecDefaultNotTuple");
|
|
29262
|
+
Diagnostic6.paramSpecFirstArg = () => getRawString("Diagnostic.paramSpecFirstArg");
|
|
29263
|
+
Diagnostic6.paramSpecKwargsUsage = () => getRawString("Diagnostic.paramSpecKwargsUsage");
|
|
29264
|
+
Diagnostic6.paramSpecNotBound = () => new ParameterizedString(getRawString("Diagnostic.paramSpecNotBound"));
|
|
29265
|
+
Diagnostic6.paramSpecNotUsedByOuterScope = () => new ParameterizedString(getRawString("Diagnostic.paramSpecNotUsedByOuterScope"));
|
|
29266
|
+
Diagnostic6.paramSpecUnknownArg = () => getRawString("Diagnostic.paramSpecUnknownArg");
|
|
29267
|
+
Diagnostic6.paramSpecUnknownMember = () => new ParameterizedString(getRawString("Diagnostic.paramSpecUnknownMember"));
|
|
29268
|
+
Diagnostic6.paramSpecUnknownParam = () => new ParameterizedString(getRawString("Diagnostic.paramSpecUnknownParam"));
|
|
29269
|
+
Diagnostic6.paramTypeCovariant = () => getRawString("Diagnostic.paramTypeCovariant");
|
|
29270
|
+
Diagnostic6.paramTypeUnknown = () => new ParameterizedString(getRawString("Diagnostic.paramTypeUnknown"));
|
|
29271
|
+
Diagnostic6.paramAssignmentMismatch = () => new ParameterizedString(getRawString("Diagnostic.paramAssignmentMismatch"));
|
|
29272
|
+
Diagnostic6.paramTypePartiallyUnknown = () => new ParameterizedString(getRawString("Diagnostic.paramTypePartiallyUnknown"));
|
|
29273
|
+
Diagnostic6.parenthesizedContextManagerIllegal = () => getRawString("Diagnostic.parenthesizedContextManagerIllegal");
|
|
29274
|
+
Diagnostic6.positionArgAfterNamedArg = () => getRawString("Diagnostic.positionArgAfterNamedArg");
|
|
29275
|
+
Diagnostic6.privateImportFromPyTypedModule = () => new ParameterizedString(getRawString("Diagnostic.privateImportFromPyTypedModule"));
|
|
29276
|
+
Diagnostic6.positionOnlyAfterArgs = () => getRawString("Diagnostic.positionOnlyAfterArgs");
|
|
29277
|
+
Diagnostic6.positionOnlyAfterKeywordOnly = () => getRawString("Diagnostic.positionOnlyAfterKeywordOnly");
|
|
29278
|
+
Diagnostic6.positionOnlyIncompatible = () => getRawString("Diagnostic.positionOnlyIncompatible");
|
|
29279
|
+
Diagnostic6.positionOnlyFirstParam = () => getRawString("Diagnostic.positionOnlyFirstParam");
|
|
29280
|
+
Diagnostic6.privateUsedOutsideOfClass = () => new ParameterizedString(getRawString("Diagnostic.privateUsedOutsideOfClass"));
|
|
29281
|
+
Diagnostic6.privateUsedOutsideOfModule = () => new ParameterizedString(getRawString("Diagnostic.privateUsedOutsideOfModule"));
|
|
29282
|
+
Diagnostic6.propertyOverridden = () => new ParameterizedString(getRawString("Diagnostic.propertyOverridden"));
|
|
29283
|
+
Diagnostic6.propertyStaticMethod = () => getRawString("Diagnostic.propertyStaticMethod");
|
|
29284
|
+
Diagnostic6.protectedUsedOutsideOfClass = () => new ParameterizedString(getRawString("Diagnostic.protectedUsedOutsideOfClass"));
|
|
29285
|
+
Diagnostic6.protocolBaseClass = () => new ParameterizedString(getRawString("Diagnostic.protocolBaseClass"));
|
|
29286
|
+
Diagnostic6.protocolBaseClassWithTypeArgs = () => getRawString("Diagnostic.protocolBaseClassWithTypeArgs");
|
|
29287
|
+
Diagnostic6.protocolIllegal = () => getRawString("Diagnostic.protocolIllegal");
|
|
29288
|
+
Diagnostic6.protocolMemberNotClassVar = () => new ParameterizedString(getRawString("Diagnostic.protocolMemberNotClassVar"));
|
|
29289
|
+
Diagnostic6.protocolNotAllowedInTypeArgument = () => getRawString("Diagnostic.protocolNotAllowedInTypeArgument");
|
|
29290
|
+
Diagnostic6.protocolUsedInCall = () => new ParameterizedString(getRawString("Diagnostic.protocolUsedInCall"));
|
|
29291
|
+
Diagnostic6.protocolVarianceContravariant = () => new ParameterizedString(getRawString("Diagnostic.protocolVarianceContravariant"));
|
|
29292
|
+
Diagnostic6.protocolVarianceCovariant = () => new ParameterizedString(getRawString("Diagnostic.protocolVarianceCovariant"));
|
|
29293
|
+
Diagnostic6.protocolVarianceInvariant = () => new ParameterizedString(getRawString("Diagnostic.protocolVarianceInvariant"));
|
|
29294
|
+
Diagnostic6.recursiveDefinition = () => new ParameterizedString(getRawString("Diagnostic.recursiveDefinition"));
|
|
29295
|
+
Diagnostic6.relativeImportNotAllowed = () => getRawString("Diagnostic.relativeImportNotAllowed");
|
|
29296
|
+
Diagnostic6.requiredArgCount = () => getRawString("Diagnostic.requiredArgCount");
|
|
29297
|
+
Diagnostic6.requiredNotInTypedDict = () => getRawString("Diagnostic.requiredNotInTypedDict");
|
|
29298
|
+
Diagnostic6.returnInAsyncGenerator = () => getRawString("Diagnostic.returnInAsyncGenerator");
|
|
29299
|
+
Diagnostic6.returnMissing = () => new ParameterizedString(getRawString("Diagnostic.returnMissing"));
|
|
29300
|
+
Diagnostic6.returnOutsideFunction = () => getRawString("Diagnostic.returnOutsideFunction");
|
|
29301
|
+
Diagnostic6.returnTypeContravariant = () => getRawString("Diagnostic.returnTypeContravariant");
|
|
29302
|
+
Diagnostic6.returnTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.returnTypeMismatch"));
|
|
29303
|
+
Diagnostic6.returnTypeUnknown = () => getRawString("Diagnostic.returnTypeUnknown");
|
|
29304
|
+
Diagnostic6.returnTypePartiallyUnknown = () => new ParameterizedString(getRawString("Diagnostic.returnTypePartiallyUnknown"));
|
|
29305
|
+
Diagnostic6.revealLocalsArgs = () => getRawString("Diagnostic.revealLocalsArgs");
|
|
29306
|
+
Diagnostic6.revealLocalsNone = () => getRawString("Diagnostic.revealLocalsNone");
|
|
29307
|
+
Diagnostic6.revealTypeArgs = () => getRawString("Diagnostic.revealTypeArgs");
|
|
29308
|
+
Diagnostic6.revealTypeExpectedTextArg = () => getRawString("Diagnostic.revealTypeExpectedTextArg");
|
|
29309
|
+
Diagnostic6.revealTypeExpectedTextMismatch = () => new ParameterizedString(getRawString("Diagnostic.revealTypeExpectedTextMismatch"));
|
|
29310
|
+
Diagnostic6.revealTypeExpectedTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.revealTypeExpectedTypeMismatch"));
|
|
29311
|
+
Diagnostic6.selfTypeContext = () => getRawString("Diagnostic.selfTypeContext");
|
|
29312
|
+
Diagnostic6.selfTypeWithTypedSelfOrCls = () => getRawString("Diagnostic.selfTypeWithTypedSelfOrCls");
|
|
29313
|
+
Diagnostic6.setterGetterTypeMismatch = () => getRawString("Diagnostic.setterGetterTypeMismatch");
|
|
29314
|
+
Diagnostic6.starPatternInAsPattern = () => getRawString("Diagnostic.starPatternInAsPattern");
|
|
29315
|
+
Diagnostic6.starPatternInOrPattern = () => getRawString("Diagnostic.starPatternInOrPattern");
|
|
29316
|
+
Diagnostic6.singleOverload = () => new ParameterizedString(getRawString("Diagnostic.singleOverload"));
|
|
29317
|
+
Diagnostic6.slotsAttributeError = () => new ParameterizedString(getRawString("Diagnostic.slotsAttributeError"));
|
|
29318
|
+
Diagnostic6.slotsClassVarConflict = () => new ParameterizedString(getRawString("Diagnostic.slotsClassVarConflict"));
|
|
29319
|
+
Diagnostic6.starStarWildcardNotAllowed = () => getRawString("Diagnostic.starStarWildcardNotAllowed");
|
|
29320
|
+
Diagnostic6.staticClsSelfParam = () => getRawString("Diagnostic.staticClsSelfParam");
|
|
29321
|
+
Diagnostic6.stdlibModuleOverridden = () => new ParameterizedString(getRawString("Diagnostic.stdlibModuleOverridden"));
|
|
29322
|
+
Diagnostic6.strictTypeGuardReturnType = () => new ParameterizedString(getRawString("Diagnostic.strictTypeGuardReturnType"));
|
|
29323
|
+
Diagnostic6.stringNonAsciiBytes = () => getRawString("Diagnostic.stringNonAsciiBytes");
|
|
29324
|
+
Diagnostic6.stringNotSubscriptable = () => getRawString("Diagnostic.stringNotSubscriptable");
|
|
29325
|
+
Diagnostic6.stringUnsupportedEscape = () => getRawString("Diagnostic.stringUnsupportedEscape");
|
|
29326
|
+
Diagnostic6.stringUnterminated = () => getRawString("Diagnostic.stringUnterminated");
|
|
29327
|
+
Diagnostic6.stubFileMissing = () => new ParameterizedString(getRawString("Diagnostic.stubFileMissing"));
|
|
29328
|
+
Diagnostic6.stubUsesGetAttr = () => getRawString("Diagnostic.stubUsesGetAttr");
|
|
29329
|
+
Diagnostic6.sublistParamsIncompatible = () => getRawString("Diagnostic.sublistParamsIncompatible");
|
|
29330
|
+
Diagnostic6.superCallArgCount = () => getRawString("Diagnostic.superCallArgCount");
|
|
29331
|
+
Diagnostic6.superCallFirstArg = () => new ParameterizedString(getRawString("Diagnostic.superCallFirstArg"));
|
|
29332
|
+
Diagnostic6.superCallSecondArg = () => new ParameterizedString(getRawString("Diagnostic.superCallSecondArg"));
|
|
29333
|
+
Diagnostic6.superCallZeroArgForm = () => getRawString("Diagnostic.superCallZeroArgForm");
|
|
29334
|
+
Diagnostic6.symbolIsUnbound = () => new ParameterizedString(getRawString("Diagnostic.symbolIsUnbound"));
|
|
29335
|
+
Diagnostic6.symbolIsUndefined = () => new ParameterizedString(getRawString("Diagnostic.symbolIsUndefined"));
|
|
29336
|
+
Diagnostic6.symbolIsPossiblyUnbound = () => new ParameterizedString(getRawString("Diagnostic.symbolIsPossiblyUnbound"));
|
|
29337
|
+
Diagnostic6.symbolOverridden = () => new ParameterizedString(getRawString("Diagnostic.symbolOverridden"));
|
|
29338
|
+
Diagnostic6.totalOrderingMissingMethod = () => getRawString("Diagnostic.totalOrderingMissingMethod");
|
|
29339
|
+
Diagnostic6.trailingCommaInFromImport = () => getRawString("Diagnostic.trailingCommaInFromImport");
|
|
29340
|
+
Diagnostic6.tryWithoutExcept = () => getRawString("Diagnostic.tryWithoutExcept");
|
|
29341
|
+
Diagnostic6.tupleAssignmentMismatch = () => new ParameterizedString(getRawString("Diagnostic.tupleAssignmentMismatch"));
|
|
29342
|
+
Diagnostic6.tupleInAnnotation = () => getRawString("Diagnostic.tupleInAnnotation");
|
|
29343
|
+
Diagnostic6.tupleIndexOutOfRange = () => new ParameterizedString(getRawString("Diagnostic.tupleIndexOutOfRange"));
|
|
29344
|
+
Diagnostic6.typeAliasIsRecursiveDirect = () => new ParameterizedString(getRawString("Diagnostic.typeAliasIsRecursiveDirect"));
|
|
29345
|
+
Diagnostic6.typeAliasIsRecursiveIndirect = () => new ParameterizedString(getRawString("Diagnostic.typeAliasIsRecursiveIndirect"));
|
|
29346
|
+
Diagnostic6.typeAliasNotInModuleOrClass = () => getRawString("Diagnostic.typeAliasNotInModuleOrClass");
|
|
29347
|
+
Diagnostic6.typeAliasRedeclared = () => new ParameterizedString(getRawString("Diagnostic.typeAliasRedeclared"));
|
|
29348
|
+
Diagnostic6.typeAliasStatementIllegal = () => getRawString("Diagnostic.typeAliasStatementIllegal");
|
|
29349
|
+
Diagnostic6.typeAnnotationCall = () => getRawString("Diagnostic.typeAnnotationCall");
|
|
29350
|
+
Diagnostic6.typeAnnotationVariable = () => getRawString("Diagnostic.typeAnnotationVariable");
|
|
29351
|
+
Diagnostic6.typeArgListExpected = () => getRawString("Diagnostic.typeArgListExpected");
|
|
29352
|
+
Diagnostic6.typeArgListNotAllowed = () => getRawString("Diagnostic.typeArgListNotAllowed");
|
|
29353
|
+
Diagnostic6.typeArgsExpectingNone = () => new ParameterizedString(getRawString("Diagnostic.typeArgsExpectingNone"));
|
|
29354
|
+
Diagnostic6.typeArgsMismatchOne = () => new ParameterizedString(getRawString("Diagnostic.typeArgsMismatchOne"));
|
|
29355
|
+
Diagnostic6.typeArgsMissingForAlias = () => new ParameterizedString(getRawString("Diagnostic.typeArgsMissingForAlias"));
|
|
29356
|
+
Diagnostic6.typeArgsMissingForClass = () => new ParameterizedString(getRawString("Diagnostic.typeArgsMissingForClass"));
|
|
29357
|
+
Diagnostic6.typeArgsTooFew = () => new ParameterizedString(getRawString("Diagnostic.typeArgsTooFew"));
|
|
29358
|
+
Diagnostic6.typeArgsTooMany = () => new ParameterizedString(getRawString("Diagnostic.typeArgsTooMany"));
|
|
29359
|
+
Diagnostic6.typeAssignmentMismatch = () => new ParameterizedString(getRawString("Diagnostic.typeAssignmentMismatch"));
|
|
29360
|
+
Diagnostic6.typeCallNotAllowed = () => getRawString("Diagnostic.typeCallNotAllowed");
|
|
29361
|
+
Diagnostic6.typeCommentDeprecated = () => getRawString("Diagnostic.typeCommentDeprecated");
|
|
29362
|
+
Diagnostic6.typedDictAccess = () => getRawString("Diagnostic.typedDictAccess");
|
|
29363
|
+
Diagnostic6.typedDictBadVar = () => getRawString("Diagnostic.typedDictBadVar");
|
|
29364
|
+
Diagnostic6.typedDictBaseClass = () => getRawString("Diagnostic.typedDictBaseClass");
|
|
29365
|
+
Diagnostic6.typedDictDelete = () => getRawString("Diagnostic.typedDictDelete");
|
|
29366
|
+
Diagnostic6.typedDictEmptyName = () => getRawString("Diagnostic.typedDictEmptyName");
|
|
29367
|
+
Diagnostic6.typedDictEntryName = () => getRawString("Diagnostic.typedDictEntryName");
|
|
29368
|
+
Diagnostic6.typedDictEntryUnique = () => getRawString("Diagnostic.typedDictEntryUnique");
|
|
29369
|
+
Diagnostic6.typedDictExtraArgs = () => getRawString("Diagnostic.typedDictExtraArgs");
|
|
29370
|
+
Diagnostic6.typedDictFieldRedefinition = () => new ParameterizedString(getRawString("Diagnostic.typedDictFieldRedefinition"));
|
|
29371
|
+
Diagnostic6.typedDictFirstArg = () => getRawString("Diagnostic.typedDictFirstArg");
|
|
29372
|
+
Diagnostic6.typedDictSecondArgDict = () => getRawString("Diagnostic.typedDictSecondArgDict");
|
|
29373
|
+
Diagnostic6.typedDictSecondArgDictEntry = () => getRawString("Diagnostic.typedDictSecondArgDictEntry");
|
|
29374
|
+
Diagnostic6.typedDictSet = () => getRawString("Diagnostic.typedDictSet");
|
|
29375
|
+
Diagnostic6.typedDictTotalParam = () => getRawString("Diagnostic.typedDictTotalParam");
|
|
29376
|
+
Diagnostic6.typeExpectedClass = () => new ParameterizedString(getRawString("Diagnostic.typeExpectedClass"));
|
|
29377
|
+
Diagnostic6.typeGuardArgCount = () => getRawString("Diagnostic.typeGuardArgCount");
|
|
29378
|
+
Diagnostic6.typeNotAwaitable = () => new ParameterizedString(getRawString("Diagnostic.typeNotAwaitable"));
|
|
29379
|
+
Diagnostic6.typeNotCallable = () => new ParameterizedString(getRawString("Diagnostic.typeNotCallable"));
|
|
29380
|
+
Diagnostic6.typeNotIntantiable = () => new ParameterizedString(getRawString("Diagnostic.typeNotIntantiable"));
|
|
29381
|
+
Diagnostic6.typeNotIterable = () => new ParameterizedString(getRawString("Diagnostic.typeNotIterable"));
|
|
29382
|
+
Diagnostic6.typeNotSpecializable = () => new ParameterizedString(getRawString("Diagnostic.typeNotSpecializable"));
|
|
29383
|
+
Diagnostic6.typeNotSubscriptable = () => new ParameterizedString(getRawString("Diagnostic.typeNotSubscriptable"));
|
|
29384
|
+
Diagnostic6.typeNotUsableWith = () => new ParameterizedString(getRawString("Diagnostic.typeNotUsableWith"));
|
|
29385
|
+
Diagnostic6.typeNotSupportBinaryOperator = () => new ParameterizedString(getRawString("Diagnostic.typeNotSupportBinaryOperator"));
|
|
29386
|
+
Diagnostic6.typeNotSupportBinaryOperatorBidirectional = () => new ParameterizedString(getRawString("Diagnostic.typeNotSupportBinaryOperatorBidirectional"));
|
|
29387
|
+
Diagnostic6.typeNotSupportUnaryOperator = () => new ParameterizedString(getRawString("Diagnostic.typeNotSupportUnaryOperator"));
|
|
29388
|
+
Diagnostic6.typeNotSupportUnaryOperatorBidirectional = () => new ParameterizedString(getRawString("Diagnostic.typeNotSupportUnaryOperatorBidirectional"));
|
|
29389
|
+
Diagnostic6.typeParameterBoundNotAllowed = () => getRawString("Diagnostic.typeParameterBoundNotAllowed");
|
|
29390
|
+
Diagnostic6.typeParameterConstraintTuple = () => getRawString("Diagnostic.typeParameterConstraintTuple");
|
|
29391
|
+
Diagnostic6.typeParameterExistingTypeParameter = () => new ParameterizedString(getRawString("Diagnostic.typeParameterExistingTypeParameter"));
|
|
29392
|
+
Diagnostic6.typeParametersMissing = () => getRawString("Diagnostic.typeParametersMissing");
|
|
29393
|
+
Diagnostic6.typeParameterNotDeclared = () => new ParameterizedString(getRawString("Diagnostic.typeParameterNotDeclared"));
|
|
29394
|
+
Diagnostic6.typeParameterOutOfScope = () => new ParameterizedString(getRawString("Diagnostic.typeParameterOutOfScope"));
|
|
29395
|
+
Diagnostic6.typePartiallyUnknown = () => new ParameterizedString(getRawString("Diagnostic.typePartiallyUnknown"));
|
|
29396
|
+
Diagnostic6.typeUnknown = () => new ParameterizedString(getRawString("Diagnostic.typeUnknown"));
|
|
29397
|
+
Diagnostic6.typeVarAssignedName = () => new ParameterizedString(getRawString("Diagnostic.typeVarAssignedName"));
|
|
29398
|
+
Diagnostic6.typeVarAssignmentMismatch = () => new ParameterizedString(getRawString("Diagnostic.typeVarAssignmentMismatch"));
|
|
29399
|
+
Diagnostic6.typeVarBoundAndConstrained = () => getRawString("Diagnostic.typeVarBoundAndConstrained");
|
|
29400
|
+
Diagnostic6.typeVarBoundGeneric = () => getRawString("Diagnostic.typeVarBoundGeneric");
|
|
29401
|
+
Diagnostic6.typeVarConstraintGeneric = () => getRawString("Diagnostic.typeVarConstraintGeneric");
|
|
29402
|
+
Diagnostic6.typeVarDefaultBoundMismatch = () => getRawString("Diagnostic.typeVarDefaultBoundMismatch");
|
|
29403
|
+
Diagnostic6.typeVarDefaultConstraintMismatch = () => getRawString("Diagnostic.typeVarDefaultConstraintMismatch");
|
|
29404
|
+
Diagnostic6.typeVarFirstArg = () => getRawString("Diagnostic.typeVarFirstArg");
|
|
29405
|
+
Diagnostic6.typeVarNoMember = () => new ParameterizedString(getRawString("Diagnostic.typeVarNoMember"));
|
|
29406
|
+
Diagnostic6.typeVarNotSubscriptable = () => new ParameterizedString(getRawString("Diagnostic.typeVarNotSubscriptable"));
|
|
29407
|
+
Diagnostic6.typeVarNotUsedByOuterScope = () => new ParameterizedString(getRawString("Diagnostic.typeVarNotUsedByOuterScope"));
|
|
29408
|
+
Diagnostic6.typeVarPossiblyUnsolvable = () => new ParameterizedString(getRawString("Diagnostic.typeVarPossiblyUnsolvable"));
|
|
29409
|
+
Diagnostic6.typeVarSingleConstraint = () => getRawString("Diagnostic.typeVarSingleConstraint");
|
|
29410
|
+
Diagnostic6.typeVarsNotInGenericOrProtocol = () => getRawString("Diagnostic.typeVarsNotInGenericOrProtocol");
|
|
29411
|
+
Diagnostic6.typeVarTupleContext = () => getRawString("Diagnostic.typeVarTupleContext");
|
|
29412
|
+
Diagnostic6.typeVarTupleDefaultNotUnpacked = () => getRawString("Diagnostic.typeVarTupleDefaultNotUnpacked");
|
|
29413
|
+
Diagnostic6.typeVarTupleMustBeUnpacked = () => getRawString("Diagnostic.typeVarTupleMustBeUnpacked");
|
|
29414
|
+
Diagnostic6.typeVarTupleUnknownParam = () => new ParameterizedString(getRawString("Diagnostic.typeVarTupleUnknownParam"));
|
|
29415
|
+
Diagnostic6.typeVarUnknownParam = () => new ParameterizedString(getRawString("Diagnostic.typeVarUnknownParam"));
|
|
29416
|
+
Diagnostic6.typeVarUsedByOuterScope = () => new ParameterizedString(getRawString("Diagnostic.typeVarUsedByOuterScope"));
|
|
29417
|
+
Diagnostic6.typeVarUsedOnlyOnce = () => new ParameterizedString(getRawString("Diagnostic.typeVarUsedOnlyOnce"));
|
|
29418
|
+
Diagnostic6.typeVarVariance = () => getRawString("Diagnostic.typeVarVariance");
|
|
29419
|
+
Diagnostic6.unaccessedClass = () => new ParameterizedString(getRawString("Diagnostic.unaccessedClass"));
|
|
29420
|
+
Diagnostic6.unaccessedFunction = () => new ParameterizedString(getRawString("Diagnostic.unaccessedFunction"));
|
|
29421
|
+
Diagnostic6.unaccessedImport = () => new ParameterizedString(getRawString("Diagnostic.unaccessedImport"));
|
|
29422
|
+
Diagnostic6.unaccessedSymbol = () => new ParameterizedString(getRawString("Diagnostic.unaccessedSymbol"));
|
|
29423
|
+
Diagnostic6.unaccessedVariable = () => new ParameterizedString(getRawString("Diagnostic.unaccessedVariable"));
|
|
29424
|
+
Diagnostic6.unexpectedAsyncToken = () => getRawString("Diagnostic.unexpectedAsyncToken");
|
|
29425
|
+
Diagnostic6.unexpectedExprToken = () => getRawString("Diagnostic.unexpectedExprToken");
|
|
29426
|
+
Diagnostic6.unexpectedIndent = () => getRawString("Diagnostic.unexpectedIndent");
|
|
29427
|
+
Diagnostic6.unexpectedUnindent = () => getRawString("Diagnostic.unexpectedUnindent");
|
|
29428
|
+
Diagnostic6.unhashableDictKey = () => getRawString("Diagnostic.unhashableDictKey");
|
|
29429
|
+
Diagnostic6.unhashableSetEntry = () => getRawString("Diagnostic.unhashableSetEntry");
|
|
29430
|
+
Diagnostic6.unionSyntaxIllegal = () => getRawString("Diagnostic.unionSyntaxIllegal");
|
|
29431
|
+
Diagnostic6.unionTypeArgCount = () => getRawString("Diagnostic.unionTypeArgCount");
|
|
29432
|
+
Diagnostic6.uninitializedInstanceVariable = () => new ParameterizedString(getRawString("Diagnostic.uninitializedInstanceVariable"));
|
|
29433
|
+
Diagnostic6.unmatchedEndregionComment = () => getRawString("Diagnostic.unmatchedEndregionComment");
|
|
29434
|
+
Diagnostic6.unmatchedRegionComment = () => getRawString("Diagnostic.unmatchedRegionComment");
|
|
29435
|
+
Diagnostic6.unnecessaryCast = () => new ParameterizedString(getRawString("Diagnostic.unnecessaryCast"));
|
|
29436
|
+
Diagnostic6.unnecessaryIsInstanceAlways = () => new ParameterizedString(getRawString("Diagnostic.unnecessaryIsInstanceAlways"));
|
|
29437
|
+
Diagnostic6.unnecessaryIsSubclassAlways = () => new ParameterizedString(getRawString("Diagnostic.unnecessaryIsSubclassAlways"));
|
|
29438
|
+
Diagnostic6.unnecessaryPyrightIgnore = () => getRawString("Diagnostic.unnecessaryPyrightIgnore");
|
|
29439
|
+
Diagnostic6.unnecessaryPyrightIgnoreRule = () => new ParameterizedString(getRawString("Diagnostic.unnecessaryPyrightIgnoreRule"));
|
|
29440
|
+
Diagnostic6.unnecessaryTypeIgnore = () => getRawString("Diagnostic.unnecessaryTypeIgnore");
|
|
29441
|
+
Diagnostic6.unpackArgCount = () => getRawString("Diagnostic.unpackArgCount");
|
|
29442
|
+
Diagnostic6.unpackedArgInTypeArgument = () => getRawString("Diagnostic.unpackedArgInTypeArgument");
|
|
29443
|
+
Diagnostic6.unpackedArgWithVariadicParam = () => getRawString("Diagnostic.unpackedArgWithVariadicParam");
|
|
29444
|
+
Diagnostic6.unpackedDictArgumentNotMapping = () => getRawString("Diagnostic.unpackedDictArgumentNotMapping");
|
|
29445
|
+
Diagnostic6.unpackedSubscriptIllegal = () => getRawString("Diagnostic.unpackedSubscriptIllegal");
|
|
29446
|
+
Diagnostic6.unpackedTypedDictArgument = () => getRawString("Diagnostic.unpackedTypedDictArgument");
|
|
29447
|
+
Diagnostic6.unpackedTypeVarTupleExpected = () => new ParameterizedString(getRawString("Diagnostic.unpackedTypeVarTupleExpected"));
|
|
29448
|
+
Diagnostic6.unpackExpectedTypedDict = () => getRawString("Diagnostic.unpackExpectedTypedDict");
|
|
29449
|
+
Diagnostic6.unpackExpectedTypeVarTuple = () => getRawString("Diagnostic.unpackExpectedTypeVarTuple");
|
|
29450
|
+
Diagnostic6.unpackIllegalInComprehension = () => getRawString("Diagnostic.unpackIllegalInComprehension");
|
|
29451
|
+
Diagnostic6.unpackInAnnotation = () => getRawString("Diagnostic.unpackInAnnotation");
|
|
29452
|
+
Diagnostic6.unpackInDict = () => getRawString("Diagnostic.unpackInDict");
|
|
29453
|
+
Diagnostic6.unpackInSet = () => getRawString("Diagnostic.unpackInSet");
|
|
29454
|
+
Diagnostic6.unpackNotAllowed = () => getRawString("Diagnostic.unpackNotAllowed");
|
|
29455
|
+
Diagnostic6.unpackOperatorNotAllowed = () => getRawString("Diagnostic.unpackOperatorNotAllowed");
|
|
29456
|
+
Diagnostic6.unpackTuplesIllegal = () => getRawString("Diagnostic.unpackTuplesIllegal");
|
|
29457
|
+
Diagnostic6.unreachableCode = () => getRawString("Diagnostic.unreachableCode");
|
|
29458
|
+
Diagnostic6.unreachableExcept = () => getRawString("Diagnostic.unreachableExcept");
|
|
29459
|
+
Diagnostic6.unsupportedDunderAllOperation = () => getRawString("Diagnostic.unsupportedDunderAllOperation");
|
|
29460
|
+
Diagnostic6.unusedCallResult = () => new ParameterizedString(getRawString("Diagnostic.unusedCallResult"));
|
|
29461
|
+
Diagnostic6.unusedCoroutine = () => getRawString("Diagnostic.unusedCoroutine");
|
|
29462
|
+
Diagnostic6.unusedExpression = () => getRawString("Diagnostic.unusedExpression");
|
|
29463
|
+
Diagnostic6.varAnnotationIllegal = () => getRawString("Diagnostic.varAnnotationIllegal");
|
|
29464
|
+
Diagnostic6.variableFinalOverride = () => new ParameterizedString(getRawString("Diagnostic.variableFinalOverride"));
|
|
29465
|
+
Diagnostic6.variadicTypeArgsTooMany = () => getRawString("Diagnostic.variadicTypeArgsTooMany");
|
|
29466
|
+
Diagnostic6.variadicTypeParamTooManyAlias = () => new ParameterizedString(getRawString("Diagnostic.variadicTypeParamTooManyAlias"));
|
|
29467
|
+
Diagnostic6.variadicTypeParamTooManyClass = () => new ParameterizedString(getRawString("Diagnostic.variadicTypeParamTooManyClass"));
|
|
29468
|
+
Diagnostic6.walrusIllegal = () => getRawString("Diagnostic.walrusIllegal");
|
|
29469
|
+
Diagnostic6.walrusNotAllowed = () => getRawString("Diagnostic.walrusNotAllowed");
|
|
29470
|
+
Diagnostic6.wildcardInFunction = () => getRawString("Diagnostic.wildcardInFunction");
|
|
29471
|
+
Diagnostic6.wildcardLibraryImport = () => getRawString("Diagnostic.wildcardLibraryImport");
|
|
29472
|
+
Diagnostic6.yieldFromIllegal = () => getRawString("Diagnostic.yieldFromIllegal");
|
|
29473
|
+
Diagnostic6.yieldFromOutsideAsync = () => getRawString("Diagnostic.yieldFromOutsideAsync");
|
|
29474
|
+
Diagnostic6.yieldOutsideFunction = () => getRawString("Diagnostic.yieldOutsideFunction");
|
|
29475
|
+
Diagnostic6.yieldTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.yieldTypeMismatch"));
|
|
29476
|
+
Diagnostic6.yieldWithinListCompr = () => getRawString("Diagnostic.yieldWithinListCompr");
|
|
29477
|
+
Diagnostic6.zeroCaseStatementsFound = () => getRawString("Diagnostic.zeroCaseStatementsFound");
|
|
29478
|
+
Diagnostic6.zeroLengthTupleNotAllowed = () => getRawString("Diagnostic.zeroLengthTupleNotAllowed");
|
|
29479
|
+
})(Diagnostic5 = Localizer2.Diagnostic || (Localizer2.Diagnostic = {}));
|
|
29475
29480
|
let DiagnosticAddendum;
|
|
29476
29481
|
(function(DiagnosticAddendum2) {
|
|
29477
29482
|
DiagnosticAddendum2.argParam = () => new ParameterizedString(getRawString("DiagnosticAddendum.argParam"));
|
|
@@ -30651,9 +30656,9 @@ var require_typePrinter = __commonJS({
|
|
|
30651
30656
|
if (type.paramSpecAccess) {
|
|
30652
30657
|
return `${type.details.name}.${type.paramSpecAccess}`;
|
|
30653
30658
|
}
|
|
30654
|
-
return `${
|
|
30659
|
+
return `${_getReadableTypeVarName(type, (printTypeFlags & 256) !== 0)}`;
|
|
30655
30660
|
}
|
|
30656
|
-
let typeVarName =
|
|
30661
|
+
let typeVarName = _getReadableTypeVarName(type, (printTypeFlags & 256) !== 0);
|
|
30657
30662
|
if (type.isVariadicUnpacked) {
|
|
30658
30663
|
typeVarName = _printUnpack(typeVarName, printTypeFlags);
|
|
30659
30664
|
}
|
|
@@ -30914,6 +30919,12 @@ var require_typePrinter = __commonJS({
|
|
|
30914
30919
|
}
|
|
30915
30920
|
return textToWrap;
|
|
30916
30921
|
}
|
|
30922
|
+
function _getReadableTypeVarName(type, usePythonSyntax) {
|
|
30923
|
+
if (usePythonSyntax) {
|
|
30924
|
+
return type.details.name;
|
|
30925
|
+
}
|
|
30926
|
+
return types_1.TypeVarType.getReadableName(type);
|
|
30927
|
+
}
|
|
30917
30928
|
}
|
|
30918
30929
|
});
|
|
30919
30930
|
|
|
@@ -33292,6 +33303,19 @@ var require_completionProvider = __commonJS({
|
|
|
33292
33303
|
if (!classResults) {
|
|
33293
33304
|
return void 0;
|
|
33294
33305
|
}
|
|
33306
|
+
const classVariableName = parseNode.parent.valueExpression.value;
|
|
33307
|
+
const classMember = (0, typeUtils_1.lookUpClassMember)(classResults.classType, classVariableName, 8 | 1);
|
|
33308
|
+
if (classMember) {
|
|
33309
|
+
const memberType = this._evaluator.getTypeOfMember(classMember);
|
|
33310
|
+
const text2 = this._evaluator.printType(memberType, {
|
|
33311
|
+
enforcePythonSyntax: true,
|
|
33312
|
+
expandTypeAlias: false
|
|
33313
|
+
});
|
|
33314
|
+
this._addNameToCompletions(text2, vscode_languageserver_1.CompletionItemKind.Reference, priorWord, completionMap, {
|
|
33315
|
+
sortText: this._makeSortText(SortCategory.LikelyKeyword, text2)
|
|
33316
|
+
});
|
|
33317
|
+
return;
|
|
33318
|
+
}
|
|
33295
33319
|
const symbolTable = /* @__PURE__ */ new Map();
|
|
33296
33320
|
for (const mroClass of classResults.classType.details.mro) {
|
|
33297
33321
|
if (mroClass === classResults.classType) {
|
|
@@ -33301,7 +33325,6 @@ var require_completionProvider = __commonJS({
|
|
|
33301
33325
|
(0, typeUtils_1.getMembersForClass)(mroClass, symbolTable, false);
|
|
33302
33326
|
}
|
|
33303
33327
|
}
|
|
33304
|
-
const classVariableName = parseNode.parent.valueExpression.value;
|
|
33305
33328
|
const symbol = symbolTable.get(classVariableName);
|
|
33306
33329
|
if (!symbol) {
|
|
33307
33330
|
return;
|
|
@@ -33834,9 +33857,6 @@ ${methodBody}`;
|
|
|
33834
33857
|
}
|
|
33835
33858
|
_getIndexerKeys(indexNode, invocationNode) {
|
|
33836
33859
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
33837
|
-
if (indexNode.baseExpression.nodeType !== 38) {
|
|
33838
|
-
return [];
|
|
33839
|
-
}
|
|
33840
33860
|
const baseType = this._evaluator.getType(indexNode.baseExpression);
|
|
33841
33861
|
if (!baseType || !(0, types_1.isClassInstance)(baseType)) {
|
|
33842
33862
|
return [];
|
|
@@ -33854,6 +33874,9 @@ ${methodBody}`;
|
|
|
33854
33874
|
return keys2;
|
|
33855
33875
|
}
|
|
33856
33876
|
}
|
|
33877
|
+
if (indexNode.baseExpression.nodeType !== 38) {
|
|
33878
|
+
return [];
|
|
33879
|
+
}
|
|
33857
33880
|
const declarations = (_a = this._evaluator.getDeclarationsForNameNode(indexNode.baseExpression)) !== null && _a !== void 0 ? _a : [];
|
|
33858
33881
|
const declaration = declarations.length > 0 ? declarations[0] : void 0;
|
|
33859
33882
|
if (!declaration || declaration.type !== 1 && declaration.type !== 2) {
|
|
@@ -45219,6 +45242,9 @@ var require_constraintSolver = __commonJS({
|
|
|
45219
45242
|
}
|
|
45220
45243
|
}
|
|
45221
45244
|
}
|
|
45245
|
+
if ((0, types_1.isTypeVar)(srcType) && srcType.details.isVariadic && srcType.isVariadicUnpacked && !srcType.isVariadicInUnion && !destType.details.isVariadic) {
|
|
45246
|
+
srcType = types_1.TypeVarType.cloneForUnpacked(srcType, true);
|
|
45247
|
+
}
|
|
45222
45248
|
if (types_1.TypeBase.isInstantiable(destType) && (0, types_1.isClassInstance)(srcType) && types_1.ClassType.isBuiltIn(srcType, "type") && !srcType.typeArguments) {
|
|
45223
45249
|
srcType = types_1.AnyType.create();
|
|
45224
45250
|
}
|
|
@@ -45573,6 +45599,7 @@ var require_constraintSolver = __commonJS({
|
|
|
45573
45599
|
name: p.name,
|
|
45574
45600
|
isNameSynthesized: p.isNameSynthesized,
|
|
45575
45601
|
hasDefault: !!p.hasDefault,
|
|
45602
|
+
defaultValueExpression: p.defaultValueExpression,
|
|
45576
45603
|
type: types_1.FunctionType.getEffectiveParameterType(functionSrcType, index)
|
|
45577
45604
|
};
|
|
45578
45605
|
return paramSpecEntry;
|
|
@@ -50138,6 +50165,7 @@ var require_dataClasses = __commonJS({
|
|
|
50138
50165
|
keywordOnlyParams: false,
|
|
50139
50166
|
generateEq: true,
|
|
50140
50167
|
generateOrder: false,
|
|
50168
|
+
frozen: false,
|
|
50141
50169
|
fieldDescriptorNames: []
|
|
50142
50170
|
};
|
|
50143
50171
|
const fileInfo = AnalyzerNodeInfo.getFileInfo(node);
|
|
@@ -50174,6 +50202,15 @@ var require_dataClasses = __commonJS({
|
|
|
50174
50202
|
behaviors.generateOrder = value;
|
|
50175
50203
|
break;
|
|
50176
50204
|
}
|
|
50205
|
+
case "frozen_default": {
|
|
50206
|
+
const value = (0, staticExpressions_1.evaluateStaticBoolExpression)(arg.valueExpression, fileInfo.executionEnvironment, fileInfo.definedConstants);
|
|
50207
|
+
if (value === void 0) {
|
|
50208
|
+
evaluator.addError(localize_1.Localizer.Diagnostic.dataClassTransformExpectedBoolLiteral(), arg.valueExpression);
|
|
50209
|
+
return;
|
|
50210
|
+
}
|
|
50211
|
+
behaviors.frozen = value;
|
|
50212
|
+
break;
|
|
50213
|
+
}
|
|
50177
50214
|
case "field_descriptors":
|
|
50178
50215
|
case "field_specifiers": {
|
|
50179
50216
|
const valueType = evaluator.getTypeOfExpression(arg.valueExpression).type;
|
|
@@ -50222,6 +50259,7 @@ var require_dataClasses = __commonJS({
|
|
|
50222
50259
|
keywordOnlyParams: false,
|
|
50223
50260
|
generateEq: true,
|
|
50224
50261
|
generateOrder: false,
|
|
50262
|
+
frozen: false,
|
|
50225
50263
|
fieldDescriptorNames: ["dataclasses.field", "dataclasses.Field"]
|
|
50226
50264
|
};
|
|
50227
50265
|
}
|
|
@@ -50305,7 +50343,7 @@ var require_dataClasses = __commonJS({
|
|
|
50305
50343
|
break;
|
|
50306
50344
|
}
|
|
50307
50345
|
}
|
|
50308
|
-
function applyDataClassClassBehaviorOverrides(evaluator, errorNode, classType, args) {
|
|
50346
|
+
function applyDataClassClassBehaviorOverrides(evaluator, errorNode, classType, args, defaultBehaviors) {
|
|
50309
50347
|
let sawFrozenArg = false;
|
|
50310
50348
|
args.forEach((arg) => {
|
|
50311
50349
|
if (arg.valueExpression && arg.name) {
|
|
@@ -50316,7 +50354,7 @@ var require_dataClasses = __commonJS({
|
|
|
50316
50354
|
}
|
|
50317
50355
|
});
|
|
50318
50356
|
if (!sawFrozenArg) {
|
|
50319
|
-
applyDataClassBehaviorOverrideValue(evaluator, errorNode, classType, "frozen",
|
|
50357
|
+
applyDataClassBehaviorOverrideValue(evaluator, errorNode, classType, "frozen", defaultBehaviors.frozen);
|
|
50320
50358
|
}
|
|
50321
50359
|
}
|
|
50322
50360
|
exports.applyDataClassClassBehaviorOverrides = applyDataClassClassBehaviorOverrides;
|
|
@@ -50332,13 +50370,15 @@ var require_dataClasses = __commonJS({
|
|
|
50332
50370
|
if (defaultBehaviors.generateOrder) {
|
|
50333
50371
|
classType.details.flags |= 64;
|
|
50334
50372
|
}
|
|
50373
|
+
if (defaultBehaviors.frozen) {
|
|
50374
|
+
classType.details.flags |= 8;
|
|
50375
|
+
}
|
|
50335
50376
|
}
|
|
50336
50377
|
exports.applyDataClassDefaultBehaviors = applyDataClassDefaultBehaviors;
|
|
50337
50378
|
function applyDataClassDecorator(evaluator, errorNode, classType, defaultBehaviors, callNode) {
|
|
50379
|
+
var _a;
|
|
50338
50380
|
applyDataClassDefaultBehaviors(classType, defaultBehaviors);
|
|
50339
|
-
|
|
50340
|
-
applyDataClassClassBehaviorOverrides(evaluator, errorNode, classType, callNode.arguments);
|
|
50341
|
-
}
|
|
50381
|
+
applyDataClassClassBehaviorOverrides(evaluator, errorNode, classType, (_a = callNode === null || callNode === void 0 ? void 0 : callNode.arguments) !== null && _a !== void 0 ? _a : [], defaultBehaviors);
|
|
50342
50382
|
}
|
|
50343
50383
|
exports.applyDataClassDecorator = applyDataClassDecorator;
|
|
50344
50384
|
}
|
|
@@ -51424,6 +51464,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
51424
51464
|
var maxCallSiteReturnTypeCacheSize = 8;
|
|
51425
51465
|
var maxEntriesToUseForInference = 64;
|
|
51426
51466
|
var maxDeclarationsToUseForInference = 64;
|
|
51467
|
+
var maxEffectiveTypeEvaluationAttempts = 16;
|
|
51427
51468
|
var maxOverloadUnionExpansionCount = 64;
|
|
51428
51469
|
var maxInferFunctionReturnRecursionCount = 12;
|
|
51429
51470
|
var verifyTypeCacheEvaluatorFlags = false;
|
|
@@ -58965,11 +59006,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
58965
59006
|
if (entry.nodeType === 32) {
|
|
58966
59007
|
entryTypeResult = getElementTypeFromListComprehension(entry);
|
|
58967
59008
|
} else {
|
|
58968
|
-
entryTypeResult = getTypeOfExpression(
|
|
58969
|
-
entry,
|
|
58970
|
-
void 0,
|
|
58971
|
-
hasExpectedType ? types_1.NeverType.createNever() : void 0
|
|
58972
|
-
);
|
|
59009
|
+
entryTypeResult = getTypeOfExpression(entry);
|
|
58973
59010
|
}
|
|
58974
59011
|
if (entryTypeResult.isIncomplete) {
|
|
58975
59012
|
isIncomplete = true;
|
|
@@ -60631,7 +60668,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
60631
60668
|
}
|
|
60632
60669
|
if (dataClassBehaviors) {
|
|
60633
60670
|
(0, dataClasses_1.applyDataClassDefaultBehaviors)(classType, dataClassBehaviors);
|
|
60634
|
-
(0, dataClasses_1.applyDataClassClassBehaviorOverrides)(evaluatorInterface, node.name, classType, initSubclassArgs);
|
|
60671
|
+
(0, dataClasses_1.applyDataClassClassBehaviorOverrides)(evaluatorInterface, node.name, classType, initSubclassArgs, dataClassBehaviors);
|
|
60635
60672
|
}
|
|
60636
60673
|
runClassTypeHooks(classType);
|
|
60637
60674
|
if (types_1.ClassType.isTypedDictClass(classType)) {
|
|
@@ -63379,6 +63416,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
63379
63416
|
return getEffectiveTypeOfSymbolForUsage(symbol).type;
|
|
63380
63417
|
}
|
|
63381
63418
|
function getEffectiveTypeOfSymbolForUsage(symbol, usageNode, useLastDecl = false) {
|
|
63419
|
+
var _a;
|
|
63382
63420
|
if (symbol.hasTypedDeclarations()) {
|
|
63383
63421
|
const declaredType = getDeclaredTypeOfSymbol(symbol, usageNode);
|
|
63384
63422
|
const typedDecls = symbol.getTypedDeclarations();
|
|
@@ -63399,12 +63437,16 @@ var require_typeEvaluator = __commonJS({
|
|
|
63399
63437
|
};
|
|
63400
63438
|
}
|
|
63401
63439
|
let cacheEntries = effectiveTypeCache.get(symbol.id);
|
|
63440
|
+
let evaluationAttempts = 0;
|
|
63402
63441
|
const usageNodeId = usageNode ? usageNode.id : void 0;
|
|
63403
63442
|
const effectiveTypeCacheKey = `${usageNodeId === void 0 ? "." : usageNodeId.toString()}${useLastDecl ? "*" : ""}`;
|
|
63404
63443
|
if (cacheEntries) {
|
|
63405
63444
|
const result = cacheEntries.get(effectiveTypeCacheKey);
|
|
63406
63445
|
if (result) {
|
|
63407
|
-
|
|
63446
|
+
if (!result.isIncomplete) {
|
|
63447
|
+
return result;
|
|
63448
|
+
}
|
|
63449
|
+
evaluationAttempts = ((_a = result.evaluationAttempts) !== null && _a !== void 0 ? _a : 0) + 1;
|
|
63408
63450
|
}
|
|
63409
63451
|
}
|
|
63410
63452
|
const typesToCombine = [];
|
|
@@ -63433,7 +63475,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
63433
63475
|
}
|
|
63434
63476
|
let sawExplicitTypeAlias = false;
|
|
63435
63477
|
decls.forEach((decl, index) => {
|
|
63436
|
-
var
|
|
63478
|
+
var _a2, _b;
|
|
63437
63479
|
let considerDecl = declIndexToConsider === void 0 || index === declIndexToConsider;
|
|
63438
63480
|
if (sawExplicitTypeAlias) {
|
|
63439
63481
|
considerDecl = false;
|
|
@@ -63455,7 +63497,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
63455
63497
|
if (isExplicitTypeAlias) {
|
|
63456
63498
|
sawExplicitTypeAlias = true;
|
|
63457
63499
|
}
|
|
63458
|
-
if (isTypeAlias && decl.type === 1 && ((_b = (
|
|
63500
|
+
if (isTypeAlias && decl.type === 1 && ((_b = (_a2 = decl.inferredTypeSource) === null || _a2 === void 0 ? void 0 : _a2.parent) === null || _b === void 0 ? void 0 : _b.nodeType) === 3) {
|
|
63459
63501
|
evaluateTypesForAssignmentStatement(decl.inferredTypeSource.parent);
|
|
63460
63502
|
if (decl.typeAliasAnnotation) {
|
|
63461
63503
|
getTypeOfAnnotation(decl.typeAliasAnnotation, {
|
|
@@ -63506,7 +63548,9 @@ var require_typeEvaluator = __commonJS({
|
|
|
63506
63548
|
}
|
|
63507
63549
|
}
|
|
63508
63550
|
isIncomplete = true;
|
|
63509
|
-
|
|
63551
|
+
if (evaluationAttempts < maxEffectiveTypeEvaluationAttempts) {
|
|
63552
|
+
sawPendingEvaluation = true;
|
|
63553
|
+
}
|
|
63510
63554
|
}
|
|
63511
63555
|
}
|
|
63512
63556
|
});
|
|
@@ -63516,7 +63560,8 @@ var require_typeEvaluator = __commonJS({
|
|
|
63516
63560
|
isIncomplete: sawPendingEvaluation,
|
|
63517
63561
|
includesVariableDecl,
|
|
63518
63562
|
includesIllegalTypeAliasDecl: !decls.every((decl) => (0, declarationUtils_1.isPossibleTypeAliasDeclaration)(decl)),
|
|
63519
|
-
isRecursiveDefinition: false
|
|
63563
|
+
isRecursiveDefinition: false,
|
|
63564
|
+
evaluationAttempts
|
|
63520
63565
|
};
|
|
63521
63566
|
if (!includesSpeculativeResult) {
|
|
63522
63567
|
if (!cacheEntries) {
|
|
@@ -63532,7 +63577,8 @@ var require_typeEvaluator = __commonJS({
|
|
|
63532
63577
|
isIncomplete,
|
|
63533
63578
|
includesVariableDecl,
|
|
63534
63579
|
includesIllegalTypeAliasDecl: !decls.every((decl) => (0, declarationUtils_1.isPossibleTypeAliasDeclaration)(decl)),
|
|
63535
|
-
isRecursiveDefinition: false
|
|
63580
|
+
isRecursiveDefinition: false,
|
|
63581
|
+
evaluationAttempts
|
|
63536
63582
|
};
|
|
63537
63583
|
}
|
|
63538
63584
|
function getDeclaredTypeOfSymbol(symbol, usageNode) {
|
|
@@ -64371,6 +64417,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
64371
64417
|
if ((0, types_1.isClassInstance)(expandedSrcType) && types_1.ClassType.isBuiltIn(expandedSrcType, "type")) {
|
|
64372
64418
|
const srcTypeArgs = expandedSrcType.typeArguments;
|
|
64373
64419
|
let typeTypeArg;
|
|
64420
|
+
let instantiableType;
|
|
64374
64421
|
if (srcTypeArgs && srcTypeArgs.length >= 1) {
|
|
64375
64422
|
typeTypeArg = srcTypeArgs[0];
|
|
64376
64423
|
if ((0, types_1.isAnyOrUnknown)(typeTypeArg)) {
|
|
@@ -64379,11 +64426,13 @@ var require_typeEvaluator = __commonJS({
|
|
|
64379
64426
|
}
|
|
64380
64427
|
return types_1.TypeBase.isInstantiable(destType);
|
|
64381
64428
|
}
|
|
64429
|
+
instantiableType = (0, typeUtils_1.convertToInstantiable)(typeTypeArg);
|
|
64382
64430
|
} else {
|
|
64383
64431
|
typeTypeArg = objectType !== null && objectType !== void 0 ? objectType : types_1.AnyType.create();
|
|
64432
|
+
instantiableType = expandedSrcType;
|
|
64384
64433
|
}
|
|
64385
64434
|
if ((0, types_1.isClassInstance)(typeTypeArg) || (0, types_1.isTypeVar)(typeTypeArg)) {
|
|
64386
|
-
if (assignType(destType,
|
|
64435
|
+
if (assignType(destType, instantiableType, diag === null || diag === void 0 ? void 0 : diag.createAddendum(), destTypeVarContext, srcTypeVarContext, flags, recursionCount)) {
|
|
64387
64436
|
return true;
|
|
64388
64437
|
}
|
|
64389
64438
|
diag === null || diag === void 0 ? void 0 : diag.addMessage(localize_1.Localizer.DiagnosticAddendum.typeAssignmentMismatch().format({
|
|
@@ -65453,6 +65502,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
65453
65502
|
name: p.name,
|
|
65454
65503
|
isNameSynthesized: p.isNameSynthesized,
|
|
65455
65504
|
hasDefault: !!p.hasDefault,
|
|
65505
|
+
defaultValueExpression: p.defaultValueExpression,
|
|
65456
65506
|
type: types_1.FunctionType.getEffectiveParameterType(effectiveSrcType, index)
|
|
65457
65507
|
});
|
|
65458
65508
|
}
|
|
@@ -70156,7 +70206,7 @@ var require_sourceFile = __commonJS({
|
|
|
70156
70206
|
const rangeStart = this._typeIgnoreAll.range.start;
|
|
70157
70207
|
const rangeEnd = rangeStart + this._typeIgnoreAll.range.length;
|
|
70158
70208
|
const range = (0, positionUtils_1.convertOffsetsToRange)(rangeStart, rangeEnd, this._parseResults.tokenizerOutput.lines);
|
|
70159
|
-
if (!isUnreachableCodeRange(range)) {
|
|
70209
|
+
if (!isUnreachableCodeRange(range) && this._diagnosticRuleSet.enableTypeIgnoreComments) {
|
|
70160
70210
|
unnecessaryTypeIgnoreDiags.push(new diagnostic_1.Diagnostic(diagCategory, localize_1.Localizer.Diagnostic.unnecessaryTypeIgnore(), range));
|
|
70161
70211
|
}
|
|
70162
70212
|
}
|
|
@@ -70166,7 +70216,7 @@ var require_sourceFile = __commonJS({
|
|
|
70166
70216
|
const rangeStart = ignoreComment.range.start;
|
|
70167
70217
|
const rangeEnd = rangeStart + ignoreComment.range.length;
|
|
70168
70218
|
const range = (0, positionUtils_1.convertOffsetsToRange)(rangeStart, rangeEnd, this._parseResults.tokenizerOutput.lines);
|
|
70169
|
-
if (!isUnreachableCodeRange(range)) {
|
|
70219
|
+
if (!isUnreachableCodeRange(range) && this._diagnosticRuleSet.enableTypeIgnoreComments) {
|
|
70170
70220
|
unnecessaryTypeIgnoreDiags.push(new diagnostic_1.Diagnostic(diagCategory, localize_1.Localizer.Diagnostic.unnecessaryTypeIgnore(), range));
|
|
70171
70221
|
}
|
|
70172
70222
|
}
|
|
@@ -71933,17 +71983,22 @@ var require_tokenizer = __commonJS({
|
|
|
71933
71983
|
this._addComments(comment);
|
|
71934
71984
|
}
|
|
71935
71985
|
_handleComment() {
|
|
71986
|
+
var _a, _b;
|
|
71936
71987
|
const start = this._cs.position + 1;
|
|
71937
71988
|
this._cs.skipToEol();
|
|
71938
71989
|
const length = this._cs.position - start;
|
|
71939
71990
|
const value = this._cs.getText().substring(start, start + length);
|
|
71940
71991
|
const comment = tokenizerTypes_1.Comment.create(start, length, value);
|
|
71941
|
-
const typeIgnoreRegexMatch = value.match(
|
|
71992
|
+
const typeIgnoreRegexMatch = value.match(/((^|#)\s*)type:\s*ignore(\s*\[([\s*\w-,]*)\]|\s|$)/);
|
|
71942
71993
|
if (typeIgnoreRegexMatch) {
|
|
71943
|
-
const
|
|
71994
|
+
const commentStart = start + ((_a = typeIgnoreRegexMatch.index) !== null && _a !== void 0 ? _a : 0);
|
|
71995
|
+
const textRange = {
|
|
71996
|
+
start: commentStart + typeIgnoreRegexMatch[1].length,
|
|
71997
|
+
length: typeIgnoreRegexMatch[0].length - typeIgnoreRegexMatch[1].length
|
|
71998
|
+
};
|
|
71944
71999
|
const ignoreComment = {
|
|
71945
72000
|
range: textRange,
|
|
71946
|
-
rulesList: this._getIgnoreCommentRulesList(
|
|
72001
|
+
rulesList: this._getIgnoreCommentRulesList(commentStart, typeIgnoreRegexMatch)
|
|
71947
72002
|
};
|
|
71948
72003
|
if (this._tokens.findIndex((t) => t.type !== 2 && t && t.type !== 3) < 0) {
|
|
71949
72004
|
this._typeIgnoreAll = ignoreComment;
|
|
@@ -71951,22 +72006,26 @@ var require_tokenizer = __commonJS({
|
|
|
71951
72006
|
this._typeIgnoreLines.set(this._lineRanges.length, ignoreComment);
|
|
71952
72007
|
}
|
|
71953
72008
|
}
|
|
71954
|
-
const pyrightIgnoreRegexMatch = value.match(
|
|
72009
|
+
const pyrightIgnoreRegexMatch = value.match(/((^|#)\s*)pyright:\s*ignore(\s*\[([\s*\w-,]*)\]|\s|$)/);
|
|
71955
72010
|
if (pyrightIgnoreRegexMatch) {
|
|
71956
|
-
const
|
|
72011
|
+
const commentStart = start + ((_b = pyrightIgnoreRegexMatch.index) !== null && _b !== void 0 ? _b : 0);
|
|
72012
|
+
const textRange = {
|
|
72013
|
+
start: commentStart + pyrightIgnoreRegexMatch[1].length,
|
|
72014
|
+
length: pyrightIgnoreRegexMatch[0].length - pyrightIgnoreRegexMatch[1].length
|
|
72015
|
+
};
|
|
71957
72016
|
const ignoreComment = {
|
|
71958
72017
|
range: textRange,
|
|
71959
|
-
rulesList: this._getIgnoreCommentRulesList(
|
|
72018
|
+
rulesList: this._getIgnoreCommentRulesList(commentStart, pyrightIgnoreRegexMatch)
|
|
71960
72019
|
};
|
|
71961
72020
|
this._pyrightIgnoreLines.set(this._lineRanges.length, ignoreComment);
|
|
71962
72021
|
}
|
|
71963
72022
|
this._addComments(comment);
|
|
71964
72023
|
}
|
|
71965
72024
|
_getIgnoreCommentRulesList(start, match) {
|
|
71966
|
-
if (match.length <
|
|
72025
|
+
if (match.length < 5 || match[4] === void 0) {
|
|
71967
72026
|
return void 0;
|
|
71968
72027
|
}
|
|
71969
|
-
const splitElements = match[
|
|
72028
|
+
const splitElements = match[4].split(",");
|
|
71970
72029
|
const commentRules = [];
|
|
71971
72030
|
let currentOffset = start + match[0].indexOf("[") + 1;
|
|
71972
72031
|
for (const element of splitElements) {
|
|
@@ -73055,15 +73114,14 @@ var require_parser = __commonJS({
|
|
|
73055
73114
|
if (postColonCallback) {
|
|
73056
73115
|
postColonCallback();
|
|
73057
73116
|
}
|
|
73058
|
-
let bodyIndentToken;
|
|
73059
73117
|
const possibleIndent = this._peekToken();
|
|
73060
73118
|
if (!this._consumeTokenIfType(3)) {
|
|
73061
73119
|
this._addError(localize_1.Localizer.Diagnostic.expectedIndentedBlock(), this._peekToken());
|
|
73062
|
-
|
|
73063
|
-
|
|
73064
|
-
|
|
73065
|
-
|
|
73066
|
-
|
|
73120
|
+
return suite;
|
|
73121
|
+
}
|
|
73122
|
+
const bodyIndentToken = possibleIndent;
|
|
73123
|
+
if (bodyIndentToken.isIndentAmbiguous) {
|
|
73124
|
+
this._addError(localize_1.Localizer.Diagnostic.inconsistentTabs(), bodyIndentToken);
|
|
73067
73125
|
}
|
|
73068
73126
|
while (true) {
|
|
73069
73127
|
const nextToken2 = this._peekToken();
|
|
@@ -73090,6 +73148,12 @@ var require_parser = __commonJS({
|
|
|
73090
73148
|
}
|
|
73091
73149
|
if (!bodyIndentToken || dedentToken.indentAmount < bodyIndentToken.indentAmount) {
|
|
73092
73150
|
break;
|
|
73151
|
+
} else if (dedentToken.indentAmount === bodyIndentToken.indentAmount) {
|
|
73152
|
+
const nextToken3 = this._peekToken();
|
|
73153
|
+
if (this._consumeTokenIfType(4)) {
|
|
73154
|
+
(0, parseNodes_1.extendRange)(suite, nextToken3);
|
|
73155
|
+
break;
|
|
73156
|
+
}
|
|
73093
73157
|
}
|
|
73094
73158
|
}
|
|
73095
73159
|
const statement = this._parseStatement();
|
|
@@ -90532,7 +90596,7 @@ var require_tree_kill = __commonJS({
|
|
|
90532
90596
|
"node_modules/tree-kill/index.js"(exports, module2) {
|
|
90533
90597
|
"use strict";
|
|
90534
90598
|
var childProcess = require("child_process");
|
|
90535
|
-
var
|
|
90599
|
+
var spawn4 = childProcess.spawn;
|
|
90536
90600
|
var exec = childProcess.exec;
|
|
90537
90601
|
module2.exports = function(pid, signal, callback) {
|
|
90538
90602
|
if (typeof signal === "function" && callback === void 0) {
|
|
@@ -90557,14 +90621,14 @@ var require_tree_kill = __commonJS({
|
|
|
90557
90621
|
break;
|
|
90558
90622
|
case "darwin":
|
|
90559
90623
|
buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
|
|
90560
|
-
return
|
|
90624
|
+
return spawn4("pgrep", ["-P", parentPid]);
|
|
90561
90625
|
}, function() {
|
|
90562
90626
|
killAll(tree, signal, callback);
|
|
90563
90627
|
});
|
|
90564
90628
|
break;
|
|
90565
90629
|
default:
|
|
90566
90630
|
buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
|
|
90567
|
-
return
|
|
90631
|
+
return spawn4("ps", ["-o", "pid", "--no-headers", "--ppid", parentPid]);
|
|
90568
90632
|
}, function() {
|
|
90569
90633
|
killAll(tree, signal, callback);
|
|
90570
90634
|
});
|
|
@@ -91771,6 +91835,7 @@ var _PythonSettings = class {
|
|
|
91771
91835
|
constructor() {
|
|
91772
91836
|
this.disposables = [];
|
|
91773
91837
|
this._pythonPath = "";
|
|
91838
|
+
this._stdLibs = [];
|
|
91774
91839
|
this.workspaceRoot = import_coc.workspace.root ? import_coc.workspace.root : __dirname;
|
|
91775
91840
|
this.initialize();
|
|
91776
91841
|
}
|
|
@@ -91879,6 +91944,9 @@ var _PythonSettings = class {
|
|
|
91879
91944
|
}
|
|
91880
91945
|
this.sortImports.path = this.getAbsolutePath(systemVariables.resolveAny(this.sortImports.path));
|
|
91881
91946
|
}
|
|
91947
|
+
get stdLibs() {
|
|
91948
|
+
return this._stdLibs;
|
|
91949
|
+
}
|
|
91882
91950
|
get pythonPath() {
|
|
91883
91951
|
return this._pythonPath;
|
|
91884
91952
|
}
|
|
@@ -91888,6 +91956,7 @@ var _PythonSettings = class {
|
|
|
91888
91956
|
}
|
|
91889
91957
|
try {
|
|
91890
91958
|
this._pythonPath = getPythonExecutable(value);
|
|
91959
|
+
this._stdLibs = getStdLibs(this._pythonPath);
|
|
91891
91960
|
} catch (ex) {
|
|
91892
91961
|
this._pythonPath = value;
|
|
91893
91962
|
}
|
|
@@ -91932,6 +92001,17 @@ function getPythonExecutable(pythonPath) {
|
|
|
91932
92001
|
}
|
|
91933
92002
|
return pythonPath;
|
|
91934
92003
|
}
|
|
92004
|
+
function getStdLibs(pythonPath) {
|
|
92005
|
+
try {
|
|
92006
|
+
let args = ["-c", "import site;print(site.getsitepackages()[0])"];
|
|
92007
|
+
const sitePkgs = child_process.spawnSync(pythonPath, args, { encoding: "utf8" }).stdout.trim();
|
|
92008
|
+
args = ["-c", "import site;print(site.getusersitepackages())"];
|
|
92009
|
+
const userPkgs = child_process.spawnSync(pythonPath, args, { encoding: "utf8" }).stdout.trim();
|
|
92010
|
+
return [sitePkgs, userPkgs];
|
|
92011
|
+
} catch (e) {
|
|
92012
|
+
return [];
|
|
92013
|
+
}
|
|
92014
|
+
}
|
|
91935
92015
|
function isValidPythonPath(pythonPath) {
|
|
91936
92016
|
try {
|
|
91937
92017
|
return child_process.spawnSync(pythonPath, ["-c", "print(1234)"], { encoding: "utf8" }).stdout.startsWith("1234");
|
|
@@ -92098,28 +92178,32 @@ var PythonCodeActionProvider = class {
|
|
|
92098
92178
|
}
|
|
92099
92179
|
};
|
|
92100
92180
|
}
|
|
92101
|
-
ignoreAction(
|
|
92102
|
-
|
|
92181
|
+
ignoreAction(document, range) {
|
|
92182
|
+
const ignoreTxt = "# type: ignore";
|
|
92183
|
+
const doc = import_coc3.workspace.getDocument(document.uri);
|
|
92184
|
+
if (this.wholeRange(document, range) || this.cursorRange(range)) {
|
|
92103
92185
|
let pos = import_coc3.Position.create(0, 0);
|
|
92104
|
-
if (doc.getline(0).startsWith("#!"))
|
|
92186
|
+
if (doc.getline(0).startsWith("#!"))
|
|
92105
92187
|
pos = import_coc3.Position.create(1, 0);
|
|
92106
|
-
|
|
92107
|
-
|
|
92108
|
-
|
|
92109
|
-
|
|
92110
|
-
|
|
92111
|
-
|
|
92112
|
-
|
|
92188
|
+
if (!doc.getline(pos.line).includes(ignoreTxt)) {
|
|
92189
|
+
return {
|
|
92190
|
+
title: "Ignore Pyright typing check for whole file",
|
|
92191
|
+
kind: import_coc3.CodeActionKind.Empty,
|
|
92192
|
+
edit: {
|
|
92193
|
+
changes: {
|
|
92194
|
+
[doc.uri]: [import_coc3.TextEdit.insert(pos, ignoreTxt + "\n")]
|
|
92195
|
+
}
|
|
92113
92196
|
}
|
|
92114
|
-
}
|
|
92115
|
-
}
|
|
92197
|
+
};
|
|
92198
|
+
}
|
|
92116
92199
|
}
|
|
92117
92200
|
if (this.lineRange(range)) {
|
|
92118
92201
|
const line = doc.getline(range.start.line);
|
|
92119
|
-
if (line && line.length && !line.startsWith("#")) {
|
|
92120
|
-
const edit = import_coc3.TextEdit.replace(range, `${line}
|
|
92202
|
+
if (line && line.length && !line.startsWith("#") && !line.includes(ignoreTxt)) {
|
|
92203
|
+
const edit = import_coc3.TextEdit.replace(range, `${line} ${ignoreTxt}${range.start.line + 1 === range.end.line ? "\n" : ""}`);
|
|
92121
92204
|
return {
|
|
92122
92205
|
title: "Ignore Pyright typing check for current line",
|
|
92206
|
+
kind: import_coc3.CodeActionKind.Empty,
|
|
92123
92207
|
edit: {
|
|
92124
92208
|
changes: {
|
|
92125
92209
|
[doc.uri]: [edit]
|
|
@@ -92152,44 +92236,56 @@ var PythonCodeActionProvider = class {
|
|
|
92152
92236
|
}
|
|
92153
92237
|
];
|
|
92154
92238
|
}
|
|
92155
|
-
|
|
92156
|
-
|
|
92157
|
-
|
|
92158
|
-
|
|
92159
|
-
|
|
92160
|
-
|
|
92161
|
-
|
|
92162
|
-
|
|
92163
|
-
|
|
92164
|
-
|
|
92165
|
-
|
|
92166
|
-
|
|
92167
|
-
|
|
92168
|
-
|
|
92169
|
-
|
|
92170
|
-
|
|
92171
|
-
|
|
92172
|
-
|
|
92173
|
-
|
|
92174
|
-
|
|
92175
|
-
|
|
92176
|
-
|
|
92239
|
+
fixAction(document, diag) {
|
|
92240
|
+
if (diag.code === "reportUndefinedVariable") {
|
|
92241
|
+
const msg = diag.message;
|
|
92242
|
+
const match = msg.match(/"(.*)" is not defined/);
|
|
92243
|
+
if (match) {
|
|
92244
|
+
return [
|
|
92245
|
+
{
|
|
92246
|
+
title: `Add "import ${match[1]}"`,
|
|
92247
|
+
kind: import_coc3.CodeActionKind.Source,
|
|
92248
|
+
command: {
|
|
92249
|
+
title: "",
|
|
92250
|
+
command: "pyright.addImport",
|
|
92251
|
+
arguments: [document, match[1], false]
|
|
92252
|
+
}
|
|
92253
|
+
},
|
|
92254
|
+
{
|
|
92255
|
+
title: `Add "from _ import ${match[1]}"`,
|
|
92256
|
+
kind: import_coc3.CodeActionKind.Source,
|
|
92257
|
+
command: {
|
|
92258
|
+
title: "",
|
|
92259
|
+
command: "pyright.addImport",
|
|
92260
|
+
arguments: [document, match[1], true]
|
|
92261
|
+
}
|
|
92262
|
+
}
|
|
92263
|
+
];
|
|
92177
92264
|
}
|
|
92178
|
-
|
|
92265
|
+
}
|
|
92266
|
+
if (diag.fix) {
|
|
92267
|
+
const title = `Fix: ${diag.message.split(":")[0]}`;
|
|
92268
|
+
const action = {
|
|
92269
|
+
title,
|
|
92270
|
+
kind: import_coc3.CodeActionKind.QuickFix,
|
|
92271
|
+
edit: diag.fix
|
|
92272
|
+
};
|
|
92273
|
+
return [action];
|
|
92274
|
+
}
|
|
92275
|
+
return [];
|
|
92179
92276
|
}
|
|
92180
92277
|
provideCodeActions(document, range, context) {
|
|
92181
|
-
if (this.cursorRange(range) && context.diagnostics.length) {
|
|
92182
|
-
const diag = context.diagnostics.find((d) => d.code === "reportUndefinedVariable");
|
|
92183
|
-
if (diag)
|
|
92184
|
-
return this.addImportActions(document, diag.message);
|
|
92185
|
-
}
|
|
92186
|
-
const doc = import_coc3.workspace.getDocument(document.uri);
|
|
92187
92278
|
const actions = [];
|
|
92279
|
+
if (context.diagnostics.length) {
|
|
92280
|
+
for (const diag of context.diagnostics) {
|
|
92281
|
+
actions.push(...this.fixAction(document, diag));
|
|
92282
|
+
}
|
|
92283
|
+
}
|
|
92188
92284
|
actions.push(this.sortImportsAction());
|
|
92189
|
-
const ignore = this.ignoreAction(
|
|
92285
|
+
const ignore = this.ignoreAction(document, range);
|
|
92190
92286
|
if (ignore)
|
|
92191
92287
|
actions.push(ignore);
|
|
92192
|
-
if (!this.wholeRange(
|
|
92288
|
+
if (!this.wholeRange(document, range) && !this.cursorRange(range)) {
|
|
92193
92289
|
actions.push(...this.extractActions(document, range));
|
|
92194
92290
|
}
|
|
92195
92291
|
return actions;
|
|
@@ -92680,6 +92776,9 @@ var BaseFormatter = class {
|
|
|
92680
92776
|
return { execPath, moduleName, args };
|
|
92681
92777
|
}
|
|
92682
92778
|
async provideDocumentFormattingEdits(document, _options, token, args, cwd) {
|
|
92779
|
+
if (this.pythonSettings.stdLibs.some((p) => import_coc5.Uri.parse(document.uri).fsPath.startsWith(p))) {
|
|
92780
|
+
return [];
|
|
92781
|
+
}
|
|
92683
92782
|
if (typeof cwd !== "string" || cwd.length === 0) {
|
|
92684
92783
|
cwd = import_coc5.Uri.file(import_coc5.workspace.root).fsPath;
|
|
92685
92784
|
}
|
|
@@ -92970,6 +93069,9 @@ var BlackdFormatter = class extends BaseFormatter {
|
|
|
92970
93069
|
import_coc7.window.showErrorMessage(msg);
|
|
92971
93070
|
return Promise.resolve([]);
|
|
92972
93071
|
}
|
|
93072
|
+
if (this.pythonSettings.stdLibs.some((p) => import_coc7.Uri.parse(document.uri).fsPath.startsWith(p))) {
|
|
93073
|
+
return Promise.resolve([]);
|
|
93074
|
+
}
|
|
92973
93075
|
return this.handle(document);
|
|
92974
93076
|
}
|
|
92975
93077
|
};
|
|
@@ -93239,22 +93341,19 @@ var TypeInlayHintsProvider = class {
|
|
|
93239
93341
|
}
|
|
93240
93342
|
getVariableHintAtHover(hover) {
|
|
93241
93343
|
const contents = hover.contents;
|
|
93242
|
-
if (contents) {
|
|
93243
|
-
|
|
93244
|
-
|
|
93245
|
-
const
|
|
93246
|
-
return
|
|
93344
|
+
if (contents && contents.value.includes("(variable)")) {
|
|
93345
|
+
const firstIdx = contents.value.indexOf(": ");
|
|
93346
|
+
if (firstIdx > -1) {
|
|
93347
|
+
const text = contents.value.substring(firstIdx + 2).split("\n")[0].trim();
|
|
93348
|
+
return ": " + text;
|
|
93247
93349
|
}
|
|
93248
93350
|
}
|
|
93249
93351
|
}
|
|
93250
93352
|
getFunctionReturnHintAtHover(hover) {
|
|
93251
93353
|
const contents = hover.contents;
|
|
93252
|
-
if (contents) {
|
|
93253
|
-
|
|
93254
|
-
|
|
93255
|
-
const hintText = "-> " + text;
|
|
93256
|
-
return hintText;
|
|
93257
|
-
}
|
|
93354
|
+
if (contents && (contents.value.includes("(function)") || contents.value.includes("(method)"))) {
|
|
93355
|
+
const text = contents.value.split("->")[1].split("\n")[0].trim();
|
|
93356
|
+
return "-> " + text;
|
|
93258
93357
|
}
|
|
93259
93358
|
}
|
|
93260
93359
|
isDisableVariableTypes(inlayHintType) {
|
|
@@ -93564,6 +93663,9 @@ var LinterInfo = class {
|
|
|
93564
93663
|
get configFileNames() {
|
|
93565
93664
|
return this._configFileNames;
|
|
93566
93665
|
}
|
|
93666
|
+
get stdinSupport() {
|
|
93667
|
+
return this._id === "ruff" ? true : false;
|
|
93668
|
+
}
|
|
93567
93669
|
isEnabled(_resource) {
|
|
93568
93670
|
const settings = this.configService;
|
|
93569
93671
|
return settings.linting[this.enabledSettingName];
|
|
@@ -93889,21 +93991,48 @@ var Ruff = class extends BaseLinter {
|
|
|
93889
93991
|
constructor(info, outputChannel) {
|
|
93890
93992
|
super(info, outputChannel, COLUMN_OFF_SET5);
|
|
93891
93993
|
}
|
|
93994
|
+
fixToWorkspaceEdit(filename, fix) {
|
|
93995
|
+
if (!fix)
|
|
93996
|
+
return null;
|
|
93997
|
+
const u = import_coc24.Uri.parse(filename).toString();
|
|
93998
|
+
const range = import_coc24.Range.create(fix.location.row - 1, fix.location.column, fix.end_location.row - 1, fix.end_location.column);
|
|
93999
|
+
return {
|
|
94000
|
+
changes: {
|
|
94001
|
+
[u]: [import_coc24.TextEdit.replace(range, fix.content)]
|
|
94002
|
+
}
|
|
94003
|
+
};
|
|
94004
|
+
}
|
|
94005
|
+
runRuff(document) {
|
|
94006
|
+
const fsPath = import_coc24.Uri.parse(document.uri).fsPath;
|
|
94007
|
+
const args = [...this.info.linterArgs(), "--format", "json", "--exit-zero", "--stdin-filename", fsPath, "-"];
|
|
94008
|
+
const command = this.info.pathName();
|
|
94009
|
+
this.outputChannel.appendLine(`${"#".repeat(10)} Run linter ${this.info.id}:`);
|
|
94010
|
+
this.outputChannel.appendLine(`${command} ${args.join(" ")}`);
|
|
94011
|
+
this.outputChannel.appendLine("");
|
|
94012
|
+
const child = (0, import_child_process3.spawn)(command, args, { cwd: import_coc24.workspace.root });
|
|
94013
|
+
return new Promise((resolve) => {
|
|
94014
|
+
child.stdin.setDefaultEncoding("utf8");
|
|
94015
|
+
child.stdin.write(document.getText());
|
|
94016
|
+
child.stdin.end();
|
|
94017
|
+
let result = "";
|
|
94018
|
+
child.stdout.on("data", (data) => {
|
|
94019
|
+
result += data.toString("utf-8").trim();
|
|
94020
|
+
});
|
|
94021
|
+
child.on("close", () => {
|
|
94022
|
+
resolve(result);
|
|
94023
|
+
});
|
|
94024
|
+
});
|
|
94025
|
+
}
|
|
93892
94026
|
async runLinter(document) {
|
|
93893
94027
|
if (!this.info.isEnabled(import_coc24.Uri.parse(document.uri)))
|
|
93894
94028
|
return [];
|
|
93895
|
-
const args = [...this.info.linterArgs(), "--format=json", import_coc24.Uri.parse(document.uri).fsPath];
|
|
93896
|
-
const bin = this.info.pathName();
|
|
93897
94029
|
try {
|
|
93898
|
-
|
|
93899
|
-
this.outputChannel.appendLine(`${bin} ${args.join(" ")}`);
|
|
93900
|
-
this.outputChannel.appendLine("");
|
|
93901
|
-
const result = (0, import_child_process3.spawnSync)(bin, args, { encoding: "utf8", cwd: import_coc24.workspace.root });
|
|
94030
|
+
const result = await this.runRuff(document);
|
|
93902
94031
|
this.outputChannel.append(`${"#".repeat(10)} Linting Output - ${this.info.id}${"#".repeat(10)}
|
|
93903
94032
|
`);
|
|
93904
|
-
this.outputChannel.append(result
|
|
94033
|
+
this.outputChannel.append(result);
|
|
93905
94034
|
this.outputChannel.appendLine("");
|
|
93906
|
-
const messages = JSON.parse(result
|
|
94035
|
+
const messages = JSON.parse(result).map((msg) => {
|
|
93907
94036
|
return {
|
|
93908
94037
|
line: msg.location.row,
|
|
93909
94038
|
column: msg.location.column - COLUMN_OFF_SET5,
|
|
@@ -93914,7 +94043,8 @@ var Ruff = class extends BaseLinter {
|
|
|
93914
94043
|
type: "",
|
|
93915
94044
|
severity: 2 /* Warning */,
|
|
93916
94045
|
provider: this.info.id,
|
|
93917
|
-
file: msg.filename
|
|
94046
|
+
file: msg.filename,
|
|
94047
|
+
fix: this.fixToWorkspaceEdit(msg.filename, msg.fix)
|
|
93918
94048
|
};
|
|
93919
94049
|
});
|
|
93920
94050
|
return messages;
|
|
@@ -93980,7 +94110,7 @@ var LintingEngine = class {
|
|
|
93980
94110
|
await Promise.all(promises);
|
|
93981
94111
|
return this.diagnosticCollection;
|
|
93982
94112
|
}
|
|
93983
|
-
async lintDocument(document) {
|
|
94113
|
+
async lintDocument(document, onChange = false) {
|
|
93984
94114
|
this.diagnosticCollection.set(document.uri, []);
|
|
93985
94115
|
if (!this.shouldLintDocument(document)) {
|
|
93986
94116
|
return;
|
|
@@ -93997,7 +94127,7 @@ var LintingEngine = class {
|
|
|
93997
94127
|
}
|
|
93998
94128
|
});
|
|
93999
94129
|
this.pendingLintings.set(fsPath, cancelToken);
|
|
94000
|
-
const activeLinters =
|
|
94130
|
+
const activeLinters = this.getActiveLinters().filter((l) => onChange ? l.stdinSupport : true);
|
|
94001
94131
|
const promises = activeLinters.map(async (info) => {
|
|
94002
94132
|
this.outputChannel.appendLine(`Using python from ${this.configService.pythonPath}
|
|
94003
94133
|
`);
|
|
@@ -94027,10 +94157,9 @@ var LintingEngine = class {
|
|
|
94027
94157
|
this.diagnosticCollection.set(document.uri, diagnostics);
|
|
94028
94158
|
}
|
|
94029
94159
|
createDiagnostics(message, document) {
|
|
94030
|
-
var _a, _b;
|
|
94031
94160
|
let start = import_coc25.Position.create(message.line > 0 ? message.line - 1 : 0, message.column);
|
|
94032
|
-
const endLine =
|
|
94033
|
-
const endColumn =
|
|
94161
|
+
const endLine = message.endLine ?? message.line;
|
|
94162
|
+
const endColumn = message.endColumn ?? message.column + 1;
|
|
94034
94163
|
let end = import_coc25.Position.create(endLine > 0 ? endLine - 1 : 0, endColumn);
|
|
94035
94164
|
const ms = /['"](.*?)['"]/g.exec(message.message);
|
|
94036
94165
|
if (ms && ms.length > 0) {
|
|
@@ -94046,6 +94175,7 @@ var LintingEngine = class {
|
|
|
94046
94175
|
const diagnostic = import_coc25.Diagnostic.create(range, message.message, severity);
|
|
94047
94176
|
diagnostic.code = message.code;
|
|
94048
94177
|
diagnostic.source = message.provider;
|
|
94178
|
+
diagnostic.fix = message.fix;
|
|
94049
94179
|
return diagnostic;
|
|
94050
94180
|
}
|
|
94051
94181
|
shouldLintDocument(document) {
|
|
@@ -94057,16 +94187,19 @@ var LintingEngine = class {
|
|
|
94057
94187
|
if (document.languageId !== PYTHON.language) {
|
|
94058
94188
|
return false;
|
|
94059
94189
|
}
|
|
94060
|
-
const
|
|
94190
|
+
const fsPath = import_coc25.Uri.parse(document.uri).fsPath;
|
|
94191
|
+
if (settings.stdLibs.some((p) => fsPath.startsWith(p))) {
|
|
94192
|
+
return false;
|
|
94193
|
+
}
|
|
94194
|
+
const relativeFileName = import_path5.default.relative(import_coc25.workspace.root, fsPath);
|
|
94061
94195
|
const ignoreMinmatches = settings.linting.ignorePatterns.map((pattern) => new import_minimatch.Minimatch(pattern, { dot: true }));
|
|
94062
94196
|
if (ignoreMinmatches.some((matcher) => matcher.match(import_coc25.Uri.parse(document.uri).fsPath) || matcher.match(relativeFileName))) {
|
|
94063
94197
|
this.outputChannel.appendLine(`${"#".repeat(5)} linting is ignored by python.linting.ignorePatterns`);
|
|
94064
94198
|
return false;
|
|
94065
94199
|
}
|
|
94066
|
-
const
|
|
94067
|
-
const exists = import_fs_extra5.default.existsSync(u.fsPath);
|
|
94200
|
+
const exists = import_fs_extra5.default.existsSync(fsPath);
|
|
94068
94201
|
if (!exists) {
|
|
94069
|
-
this.outputChannel.appendLine(`${"#".repeat(5)} linting is disabled because file is not exists: ${
|
|
94202
|
+
this.outputChannel.appendLine(`${"#".repeat(5)} linting is disabled because file is not exists: ${fsPath}`);
|
|
94070
94203
|
return false;
|
|
94071
94204
|
}
|
|
94072
94205
|
return true;
|
|
@@ -94081,7 +94214,7 @@ var LintingEngine = class {
|
|
|
94081
94214
|
}
|
|
94082
94215
|
throw new Error(`Invalid linter '${Product[product]}'`);
|
|
94083
94216
|
}
|
|
94084
|
-
|
|
94217
|
+
getActiveLinters(resource) {
|
|
94085
94218
|
return this.linters.filter((x) => x.isEnabled(resource));
|
|
94086
94219
|
}
|
|
94087
94220
|
async createLinter(info, outputChannel) {
|
|
@@ -94125,10 +94258,11 @@ var LinterProvider = class {
|
|
|
94125
94258
|
this.context = context;
|
|
94126
94259
|
this.disposables = [];
|
|
94127
94260
|
this.engine = new LintingEngine();
|
|
94128
|
-
this.
|
|
94261
|
+
this.pythonSettings = PythonSettings.getInstance();
|
|
94129
94262
|
import_coc26.workspace.onDidOpenTextDocument((e) => this.onDocumentOpened(e), this.context.subscriptions);
|
|
94130
94263
|
import_coc26.workspace.onDidCloseTextDocument((e) => this.onDocumentClosed(e), this.context.subscriptions);
|
|
94131
94264
|
import_coc26.workspace.onDidSaveTextDocument((e) => this.onDocumentSaved(e), this.context.subscriptions);
|
|
94265
|
+
import_coc26.workspace.onDidChangeTextDocument((e) => this.onDocumentChanged(e), this.context.subscriptions);
|
|
94132
94266
|
const disposable = import_coc26.workspace.onDidChangeConfiguration(this.lintSettingsChangedHandler.bind(this));
|
|
94133
94267
|
this.disposables.push(disposable);
|
|
94134
94268
|
this.disposables.push(import_coc26.commands.registerCommand("python.runLinting", this.runLinting.bind(this)));
|
|
@@ -94153,12 +94287,16 @@ var LinterProvider = class {
|
|
|
94153
94287
|
});
|
|
94154
94288
|
}
|
|
94155
94289
|
onDocumentSaved(document) {
|
|
94156
|
-
if (
|
|
94290
|
+
if (this.pythonSettings.linting.lintOnSave) {
|
|
94157
94291
|
this.engine.lintDocument(document).catch(() => {
|
|
94158
94292
|
});
|
|
94159
|
-
return;
|
|
94160
94293
|
}
|
|
94161
94294
|
}
|
|
94295
|
+
onDocumentChanged(e) {
|
|
94296
|
+
const document = import_coc26.workspace.getDocument(e.textDocument.uri);
|
|
94297
|
+
this.engine.lintDocument(document.textDocument, true).catch(() => {
|
|
94298
|
+
});
|
|
94299
|
+
}
|
|
94162
94300
|
onDocumentClosed(document) {
|
|
94163
94301
|
if (!document || !import_coc26.Uri.parse(document.uri).fsPath || !document.uri) {
|
|
94164
94302
|
return;
|
|
@@ -94538,6 +94676,7 @@ var TestFrameworkProvider = class {
|
|
|
94538
94676
|
if (rangeInRange(range, import_coc28.Range.create(itemStartPosition, itemEndPosition))) {
|
|
94539
94677
|
actions.push({
|
|
94540
94678
|
title: `RUN ${item.value} with ${this.framework}`,
|
|
94679
|
+
kind: import_coc28.CodeActionKind.Empty,
|
|
94541
94680
|
command: {
|
|
94542
94681
|
title: `RUN ${item.value} with ${this.framework}`,
|
|
94543
94682
|
command: "pyright.singleTest"
|