Commit 5e56d5d
committed
perf: 清理冗余代码;
1 parent 4429965 commit 5e56d5d
5 files changed
Lines changed: 35 additions & 87 deletions
- package.json+1-1
- server/bnf.txt+13-14
- server/src/compiler_analyzer/analyzer.ts+99-62
- server/src/compiler_analyzer/functionCall.ts+108-13
- server/src/compiler_analyzer/hoist.ts+16-21
- server/src/compiler_analyzer/operatorCall.ts+32-2
- server/src/compiler_analyzer/symbolObject.ts+11-9
- server/src/compiler_analyzer/symbolScope.ts+9
- server/src/compiler_analyzer/symbolUtils.ts-27
- server/src/compiler_analyzer/typeConversion.ts+57-22
- server/src/compiler_analyzer/typeConversionSideEffect.ts+19-9
- server/src/compiler_parser/nodeChildren.ts+9-13
- server/src/compiler_parser/nodeObject.ts+23-21
- server/src/compiler_parser/nodeUtils.ts+6-6
- server/src/compiler_parser/parser.ts+732-709
- server/src/compiler_parser/parserPreprocess.ts+3-3
- server/src/compiler_parser/parserState.ts+24-23
- server/src/compiler_tokenizer/reservedWord.ts+26-22
- server/src/compiler_tokenizer/tokenObject.ts+27-33
- server/src/compiler_tokenizer/tokenizer.ts+88-89
- server/src/compiler_tokenizer/tokenizerState.ts+10-10
- server/src/core/highlight.ts+4-4
- server/src/formatter/formatter.ts+46-53
- server/src/formatter/formatterState.ts+2-2
- server/src/server.ts+3-3
- server/src/services/completion.ts+65-67
- server/src/services/completion/functionSection.ts+1-1
- server/src/services/completionOnToken.ts+6-9
- server/src/services/semanticTokens.ts+3-3
- server/src/services/utils.ts+4-1
- server/test/compiler/analyzer/arrayType.spec.ts+96
- server/test/compiler/analyzer/const.spec.ts+46
- server/test/compiler/analyzer/functionArguments.spec.ts+93-2
- server/test/compiler/analyzer/namedArguments.spec.ts+10
- server/test/compiler/analyzer/overloadAmbiguity.spec.ts+52
- server/test/compiler/analyzer/templateSpecialization.spec.ts+10
- server/test/compiler/parser.spec.ts+77-11
- server/test/services/completion/class.spec.ts+20
- server/test/services/definition/funcdef.spec.ts+34
- server/test/services/definition/overloadedFunction.spec.ts+78
- server/test/services/hover.spec.ts+1-1
- server/update_bnf.py+60-15
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
670 | 670 | | |
671 | 671 | | |
672 | 672 | | |
673 | | - | |
| 673 | + | |
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
1363 | 1362 | | |
1364 | 1363 | | |
1365 | 1364 | | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
1376 | | - | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
1382 | 1368 | | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
1388 | 1373 | | |
1389 | 1374 | | |
1390 | 1375 | | |
| |||
1394 | 1379 | | |
1395 | 1380 | | |
1396 | 1381 | | |
1397 | | - | |
1398 | | - | |
1399 | | - | |
1400 | | - | |
1401 | | - | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
1407 | | - | |
1408 | | - | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | | - | |
1416 | | - | |
1417 | | - | |
1418 | | - | |
1419 | | - | |
1420 | | - | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
1421 | 1385 | | |
1422 | | - | |
1423 | | - | |
1424 | | - | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
1425 | 1389 | | |
1426 | | - | |
1427 | | - | |
1428 | | - | |
1429 | | - | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
1430 | 1394 | | |
1431 | | - | |
1432 | | - | |
1433 | | - | |
1434 | | - | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
1435 | 1398 | | |
1436 | 1399 | | |
1437 | 1400 | | |
| |||
1806 | 1769 | | |
1807 | 1770 | | |
1808 | 1771 | | |
1809 | | - | |
1810 | | - | |
1811 | | - | |
1812 | | - | |
1813 | | - | |
1814 | | - | |
1815 | | - | |
1816 | | - | |
1817 | | - | |
1818 | | - | |
1819 | | - | |
1820 | | - | |
1821 | | - | |
1822 | | - | |
1823 | | - | |
1824 | | - | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
1825 | 1775 | | |
1826 | | - | |
1827 | | - | |
1828 | | - | |
1829 | | - | |
1830 | | - | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
1831 | 1780 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2217 | 2217 | | |
2218 | 2218 | | |
2219 | 2219 | | |
2220 | | - | |
2221 | | - | |
2222 | | - | |
| 2220 | + | |
| 2221 | + | |
2223 | 2222 | | |
2224 | 2223 | | |
2225 | 2224 | | |
| |||
2266 | 2265 | | |
2267 | 2266 | | |
2268 | 2267 | | |
2269 | | - | |
2270 | | - | |
2271 | | - | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
2272 | 2271 | | |
2273 | 2272 | | |
2274 | 2273 | | |
| |||
0 commit comments