Skip to content

feat: Substitution Part 2#8599

Merged
Jason3S merged 1 commit intomainfrom
dev-map
Feb 19, 2026
Merged

feat: Substitution Part 2#8599
Jason3S merged 1 commit intomainfrom
dev-map

Conversation

@Jason3S
Copy link
Collaborator

@Jason3S Jason3S commented Feb 17, 2026

Pull request overview

This pull request is part of a "Substitution" feature series (Part 2), focusing on reorganizing type definitions and adding utility functions for text transformation and source mapping. The main purpose is to consolidate Parser-related types and introduce new mapping utilities needed for the substitution feature.

Changes:

  • Reorganizes type definitions by moving MappedText, Range, and SourceMap from root-level exports to the Parser directory structure
  • Adds new source map manipulation functions (mapOffsetToSource, mapRangeToSource, mergeSourceMaps) to support text transformation workflows
  • Introduces API declaration file generation for documentation purposes via separate tsdown build configurations

@github-actions
Copy link
Contributor

github-actions bot commented Feb 17, 2026

Performance Report

Daily Performance
xychart-beta
    title Files Per Second by Day
    y-axis Files per Second
    x-axis Date [Jan-20, Jan-22, Jan-24, Jan-26, Jan-27, Jan-31, Feb-1, Feb-2, Feb-3, Feb-4, Feb-6, Feb-7, Feb-8, Feb-9, Feb-10, Feb-11, Feb-12, Feb-14, Feb-15, Feb-16, Feb-17, Feb-19]
    bar [194.86, 191.82, 190.32, 191.51, 190.41, 192.01, 191.89, 188.72, 191.38, 188.90, 190.72, 190.17, 190.44, 190.91, 190.55, 190.54, 188.86, 190.65, 191.15, 192.54, 190.97, 189.21]
    line [47.34, 47.51, 47.53, 47.48, 45.26, 47.60, 46.28, 48.66, 45.03, 44.68, 43.73, 45.57, 47.74, 41.63, 41.21, 45.64, 48.81, 44.68, 43.13, 46.03, 46.35, 45.95]
    line [6.72, 6.67, 6.94, 6.67, 6.54, 6.62, 6.41, 6.91, 6.36, 6.58, 6.71, 6.80, 6.54, 6.62, 5.96, 6.86, 6.86, 6.52, 6.16, 6.48, 6.78, 6.24]
    line [20.01, 18.93, 20.01, 19.80, 18.94, 17.77, 19.48, 18.59, 18.27, 20.00, 20.26, 18.55, 19.66, 20.05, 18.72, 19.96, 20.29, 18.59, 19.07, 20.25, 18.95, 19.76]
    line [107.20, 104.26, 106.72, 105.14, 103.83, 105.85, 104.82, 108.27, 101.16, 101.71, 96.80, 105.17, 106.78, 104.49, 88.12, 105.95, 95.68, 105.24, 108.38, 96.07, 105.42, 104.57]
    line [129.79, 127.22, 125.81, 130.48, 125.23, 130.52, 121.85, 125.25, 129.66, 129.52, 125.44, 125.65, 123.91, 126.45, 124.46, 122.70, 126.21, 125.01, 121.92, 124.63, 126.05, 123.51]
    line [48.91, 48.82, 49.53, 48.99, 48.58, 48.96, 48.60, 48.80, 46.86, 44.78, 49.77, 46.58, 46.37, 48.10, 48.71, 50.07, 49.29, 45.43, 50.01, 33.04, 44.04, 44.67]
    line [15.24, 15.02, 15.03, 15.29, 14.84, 15.62, 14.38, 14.96, 14.97, 15.27, 14.50, 15.88, 15.38, 15.78, 13.95, 14.61, 15.64, 15.09, 14.85, 15.30, 15.16, 14.06]
    line [139.77, 142.05, 138.61, 141.46, 138.59, 143.14, 142.73, 142.84, 131.70, 135.60, 134.90, 137.77, 133.55, 139.08, 139.48, 135.67, 138.79, 139.27, 140.69, 136.31, 141.26, 136.95]
    line [235.23, 231.97, 232.80, 236.05, 231.31, 219.07, 234.91, 232.08, 226.54, 219.34, 230.80, 225.22, 227.18, 223.96, 236.18, 221.89, 211.43, 221.91, 216.06, 220.67, 225.17, 231.02]
    line [229.96, 235.68, 233.44, 228.13, 220.74, 229.98, 223.23, 220.66, 222.78, 222.35, 231.30, 222.88, 223.28, 209.50, 215.15, 218.83, 217.74, 220.20, 225.26, 234.21, 221.97, 226.10]
    line [55.67, 55.20, 55.10, 53.59, 53.02, 57.11, 52.81, 55.66, 56.60, 51.29, 52.77, 57.05, 53.25, 56.05, 58.16, 56.27, 53.18, 53.98, 54.67, 55.62, 52.95, 56.33]
    line [191.50, 191.17, 193.91, 185.17, 181.80, 175.63, 188.19, 178.84, 190.27, 179.88, 183.71, 188.14, 181.32, 186.40, 168.60, 184.20, 174.99, 182.26, 184.13, 178.63, 177.91, 178.13]
    line [86.00, 85.64, 83.63, 82.99, 83.39, 81.99, 83.50, 81.95, 82.10, 83.95, 83.89, 81.23, 83.38, 84.02, 78.63, 78.33, 84.47, 83.13, 83.66, 80.84, 83.02, 84.44]
    line [35.39, 34.93, 34.02, 34.09, 33.87, 34.29, 34.92, 32.72, 32.24, 34.39, 32.11, 29.25, 34.28, 34.27, 30.99, 32.76, 34.39, 34.12, 31.87, 32.51, 34.43, 31.35]
    line [39.99, 39.45, 39.56, 40.89, 38.42, 41.91, 40.21, 40.30, 38.59, 39.97, 40.70, 38.75, 38.14, 39.24, 39.45, 39.06, 40.44, 38.93, 40.19, 35.66, 39.21, 40.89]
    line [102.12, 105.87, 102.16, 102.14, 102.53, 103.49, 99.40, 99.16, 97.64, 98.18, 103.70, 106.20, 99.99, 97.22, 103.26, 104.26, 101.58, 98.06, 97.55, 103.52, 102.20, 104.64]
    line [377.40, 385.33, 384.07, 389.49, 375.11, 344.39, 377.92, 368.78, 357.60, 388.25, 362.18, 363.07, 369.70, 375.89, 360.98, 379.16, 371.95, 380.17, 380.03, 383.65, 403.62, 329.33]
    line [349.54, 352.62, 353.32, 354.47, 340.16, 355.36, 343.22, 341.35, 343.34, 343.75, 345.17, 341.37, 358.57, 359.43, 367.04, 357.06, 346.78, 363.25, 359.22, 355.34, 343.44, 363.00]
    line [266.25, 265.39, 261.87, 267.56, 251.76, 251.39, 257.09, 256.60, 252.24, 257.13, 261.45, 265.63, 258.24, 253.80, 254.33, 238.72, 270.54, 256.71, 261.76, 251.74, 255.44, 255.70]
    line [124.24, 127.06, 126.29, 124.09, 118.58, 122.01, 124.68, 121.40, 124.27, 121.00, 122.72, 124.94, 121.83, 120.56, 119.51, 117.66, 126.41, 120.64, 118.92, 126.15, 122.12, 122.32]
    line [86.06, 84.27, 86.06, 83.34, 81.63, 80.82, 83.46, 83.98, 85.68, 83.63, 81.75, 82.99, 80.30, 81.36, 82.63, 82.18, 80.51, 83.91, 83.57, 87.71, 81.51, 80.83]
    line [37.68, 37.40, 37.80, 38.01, 36.89, 36.96, 37.04, 36.98, 36.58, 36.57, 37.20, 37.62, 37.00, 38.62, 38.34, 38.10, 37.49, 36.82, 37.56, 36.77, 36.33, 37.40]
    line [91.04, 90.36, 90.73, 88.98, 87.79, 92.24, 85.84, 87.34, 84.11, 87.49, 86.37, 87.72, 85.83, 80.71, 86.83, 85.89, 88.80, 88.35, 86.20, 79.88, 88.50, 88.86]
    line [26.49, 25.80, 26.06, 26.20, 24.97, 23.09, 24.19, 23.67, 25.80, 25.02, 24.57, 25.83, 26.53, 27.12, 25.19, 24.73, 26.32, 25.72, 25.93, 26.65, 24.45, 25.52]
    line [192.71, 195.01, 195.95, 192.00, 189.33, 196.17, 191.05, 192.93, 192.90, 193.43, 182.93, 188.24, 197.74, 194.04, 183.39, 196.97, 181.19, 192.15, 188.44, 188.43, 193.17, 194.32]
    line [237.40, 232.15, 240.84, 231.74, 230.60, 238.25, 234.41, 226.71, 230.40, 229.74, 237.81, 232.23, 224.57, 237.26, 238.90, 231.61, 222.35, 235.22, 226.17, 229.70, 226.87, 232.74]
    line [267.02, 266.61, 269.34, 261.80, 260.28, 260.12, 259.24, 266.03, 264.66, 253.81, 264.19, 262.88, 255.12, 259.81, 256.65, 259.10, 261.07, 258.76, 261.47, 267.24, 254.70, 257.67]
    line [178.23, 175.77, 178.27, 178.37, 173.24, 175.53, 174.36, 175.31, 176.60, 177.03, 168.50, 172.68, 169.57, 174.00, 174.69, 174.76, 142.58, 173.78, 169.32, 168.80, 179.63, 179.91]
    line [223.77, 218.30, 218.17, 216.51, 216.11, 223.69, 217.62, 221.92, 210.52, 217.06, 217.75, 221.18, 215.63, 217.27, 218.63, 215.55, 219.85, 215.87, 211.04, 214.14, 215.28, 213.09]
    line [178.88, 180.40, 174.86, 177.54, 174.66, 177.76, 179.20, 178.55, 179.09, 179.41, 173.82, 171.95, 172.64, 171.28, 176.43, 175.80, 180.86, 176.28, 173.64, 175.63, 176.43, 178.51]
    line [221.50, 215.62, 221.41, 212.75, 215.81, 222.32, 209.91, 217.01, 216.15, 212.32, 213.20, 215.93, 213.93, 215.54, 211.99, 212.34, 214.45, 216.77, 218.28, 216.31, 214.05, 214.67]
    line [244.81, 244.90, 244.81, 248.38, 241.40, 249.14, 241.45, 239.07, 239.51, 243.53, 244.90, 249.62, 243.56, 245.16, 248.01, 245.77, 245.71, 246.33, 249.20, 246.02, 244.24, 231.62]
    line [417.95, 422.87, 425.03, 422.04, 415.46, 422.79, 413.85, 411.47, 422.24, 425.96, 422.90, 426.77, 417.49, 413.10, 427.18, 415.79, 423.61, 413.93, 415.75, 423.97, 415.82, 402.21]
    line [102.10, 97.82, 100.22, 98.35, 98.09, 97.24, 99.79, 99.21, 94.63, 98.63, 99.54, 99.93, 96.90, 95.85, 100.02, 98.95, 99.68, 93.47, 96.18, 99.12, 97.35, 97.51]
    line [314.28, 338.34, 330.62, 332.64, 332.86, 330.58, 325.66, 323.17, 336.90, 335.91, 322.03, 323.49, 318.09, 297.24, 321.28, 332.16, 332.97, 319.43, 324.88, 322.69, 320.99, 329.84]
    line [137.40, 132.80, 128.54, 132.65, 129.67, 126.00, 129.13, 135.02, 129.21, 131.37, 130.21, 127.48, 133.83, 127.77, 122.88, 128.37, 135.10, 130.41, 132.90, 121.26, 129.83, 131.86]
    line [233.73, 255.35, 238.38, 229.34, 231.07, 215.86, 227.49, 237.43, 233.36, 227.18, 233.42, 233.14, 230.84, 225.21, 232.83, 240.89, 231.65, 231.34, 231.21, 244.19, 223.55, 239.70]
    line [80.33, 81.35, 82.74, 85.67, 76.62, 69.80, 79.78, 83.19, 79.99, 81.38, 78.37, 78.87, 76.33, 81.76, 73.03, 78.44, 82.16, 76.45, 81.35, 81.75, 78.06, 74.92]
    line [159.45, 163.50, 167.30, 165.36, 160.46, 164.87, 161.06, 158.29, 161.96, 164.85, 164.28, 164.40, 159.10, 159.22, 159.55, 156.17, 168.86, 156.43, 163.15, 147.05, 161.97, 157.72]
    line [206.74, 209.26, 204.49, 217.13, 213.62, 216.87, 219.73, 217.00, 217.80, 206.42, 216.86, 217.40, 212.93, 213.99, 216.37, 207.17, 209.51, 213.52, 203.34, 215.88, 213.12, 205.73]
    line [24.93, 24.42, 24.29, 23.65, 23.65, 21.57, 23.77, 24.71, 24.15, 24.26, 23.40, 25.18, 24.34, 21.29, 24.41, 23.32, 24.52, 23.95, 23.93, 26.14, 23.05, 24.64]
    line [153.74, 153.12, 150.15, 146.49, 146.96, 143.93, 149.76, 150.71, 139.56, 149.35, 149.31, 151.26, 147.89, 143.35, 146.05, 148.59, 146.97, 147.88, 152.57, 150.80, 149.13, 152.26]
    line [70.36, 68.71, 69.89, 68.59, 68.16, 64.96, 64.42, 71.54, 66.41, 68.48, 67.32, 68.66, 69.54, 66.78, 64.72, 66.96, 67.81, 67.54, 69.24, 69.14, 67.84, 76.41]
    line [225.59, 221.54, 226.67, 217.21, 209.84, 210.58, 224.80, 219.16, 222.44, 214.46, 210.98, 218.39, 222.45, 224.30, 218.74, 221.76, 200.54, 218.78, 219.30, 216.79, 209.78, 203.99]
    line [132.53, 130.75, 129.59, 130.75, 126.15, 128.28, 128.07, 127.23, 125.91, 129.12, 126.49, 131.65, 129.27, 131.48, 127.09, 130.68, 129.17, 127.78, 130.44, 128.86, 131.22, 132.26]
    line [206.41, 203.60, 205.03, 203.50, 200.03, 203.99, 203.12, 208.67, 201.18, 195.78, 203.73, 196.42, 202.06, 200.13, 204.90, 199.89, 202.61, 200.63, 203.97, 207.62, 204.11, 196.35]
    line [198.68, 192.03, 202.65, 197.73, 197.86, 185.13, 193.14, 197.96, 188.03, 184.87, 192.18, 186.89, 188.37, 189.97, 197.93, 196.64, 199.99, 198.18, 196.78, 191.66, 183.24, 198.97]
    line [133.67, 135.32, 136.02, 132.00, 133.67, 130.01, 133.77, 131.00, 132.25, 127.77, 131.87, 132.83, 130.24, 129.37, 135.96, 133.33, 120.48, 131.69, 126.77, 128.95, 131.05, 132.77]
    line [271.72, 264.80, 259.27, 265.80, 263.72, 257.16, 251.63, 250.02, 261.80, 245.30, 263.91, 261.35, 263.52, 260.14, 262.60, 262.38, 253.84, 256.03, 271.88, 272.11, 262.81, 268.41]
    line [181.65, 172.80, 167.02, 174.50, 177.97, 180.67, 179.91, 166.82, 180.26, 174.86, 175.68, 174.32, 177.53, 181.20, 174.17, 176.92, 176.20, 178.74, 179.75, 180.11, 177.55, 173.68]
Loading
Time to Process Files
Repository Elapsed Min/Avg/Max SD SD Graph
AdaDoom3/AdaDoom3 2.75 2.6 / 2.8 / 2.9 0.07 ┣━━┻━━●━━┻━━┫
alexiosc/megistos 7.21 6.6 / 7.0 / 7.8 0.24 ┣━━┻━━╋━●┻━━┫
apollographql/apollo-server 2.43 2.3 / 2.5 / 2.9 0.12 ┣━━┻●━╋━━┻━━┫
aspnetboilerplate/aspnetboilerplate 8.87 8.3 / 8.8 / 9.9 0.24 ┣━━┻━━╋●━┻━━┫
aws-amplify/docs 12.41 11.3 / 11.8 / 12.5 0.25 ┣━━┻━━╋━━┻━━┫ ●
Azure/azure-rest-api-specs 9.11 8.6 / 9.4 / 11.2 0.46 ┣━━┻●━╋━━┻━━┫
bitjson/typescript-starter 1.01 1.0 / 1.0 / 1.2 0.07 ┣━┻━●╋━━┻━┫
caddyserver/caddy 3.32 3.1 / 3.3 / 3.7 0.14 ┣━━┻━━●━━┻━━┫
canada-ca/open-source-logiciel-libre 1.12 1.0 / 1.1 / 1.2 0.05 ┣━┻━━╋━━●━┫
chef/chef 5.30 5.0 / 5.4 / 5.9 0.21 ┣━━┻━●╋━━┻━━┫
dart-lang/sdk 55.96 50.2 / 54.2 / 60.2 1.48 ┣━━━┻━━━╋━━━●━━━┫
django/django 13.47 12.6 / 13.4 / 14.4 0.38 ┣━━┻━━●━━┻━━┫
eslint/eslint 9.67 9.0 / 9.5 / 10.3 0.25 ┣━━┻━━╋━●┻━━┫
exonum/exonum 3.41 3.2 / 3.3 / 3.6 0.10 ┣━━┻━━╋━●┻━━┫
flutter/samples 14.24 13.4 / 14.2 / 17.4 0.59 ┣━━━┻━━●━━┻━━━┫
gitbucket/gitbucket 3.14 3.0 / 3.2 / 3.4 0.12 ┣━━┻━●╋━━┻━━┫
googleapis/google-cloud-cpp 121.86 114.3 / 119.1 / 135.3 3.88 ┣━━━┻━━━╋━━●┻━━━┫
graphql/express-graphql 1.06 1.0 / 1.1 / 1.3 0.07 ┣━┻━●╋━━┻━┫
graphql/graphql-js 2.69 2.5 / 2.7 / 3.1 0.10 ┣━━┻━━╋●━┻━━┫
graphql/graphql-relay-js 1.10 1.0 / 1.1 / 1.3 0.07 ┣━┻━━●━━┻━┫
graphql/graphql-spec 1.35 1.2 / 1.3 / 1.4 0.06 ┣━┻━━╋━━┻●┫
iluwatar/java-design-patterns 11.42 10.8 / 11.4 / 12.1 0.34 ┣━━┻━━●━━┻━━┫
ktaranov/sqlserver-kit 5.80 5.5 / 5.9 / 6.9 0.22 ┣━━┻━●╋━━┻━━┫
liriliri/licia 4.36 3.4 / 3.8 / 4.2 0.16 ┣━━┻━━╋━━┻━━┫ ●
MartinThoma/LaTeX-examples 6.05 5.8 / 6.1 / 6.7 0.19 ┣━━┻━━●━━┻━━┫
mdx-js/mdx 1.88 1.4 / 1.8 / 2.1 0.11 ┣━━┻━━╋━━●━━┫
microsoft/TypeScript-Website 5.00 4.9 / 5.1 / 5.9 0.20 ┣━━┻●━╋━━┻━━┫
MicrosoftDocs/PowerShell-Docs 19.94 19.2 / 20.1 / 22.0 0.61 ┣━━━┻━●╋━━┻━━━┫
neovim/nvim-lspconfig 3.87 3.8 / 4.0 / 4.6 0.16 ┣━━┻●━╋━━┻━━┫
pagekit/pagekit 3.63 3.2 / 3.4 / 3.9 0.15 ┣━━┻━━╋━━┻●━┫
php/php-src 23.32 21.8 / 23.1 / 28.7 0.95 ┣━━━┻━━╋●━┻━━━┫
plasticrake/tplink-smarthome-api 1.39 1.2 / 1.3 / 1.9 0.10 ┣━┻━━╋━●┻━┫
prettier/prettier 7.34 7.0 / 7.5 / 8.1 0.27 ┣━━┻●━╋━━┻━━┫
pycontribs/jira 1.40 1.4 / 1.5 / 1.7 0.08 ┣━┻●━╋━━┻━┫
RustPython/RustPython 6.16 5.6 / 6.1 / 7.1 0.26 ┣━━┻━━╋●━┻━━┫
shoelace-style/shoelace 2.78 2.6 / 2.7 / 3.0 0.10 ┣━━┻━━╋━●┻━━┫
slint-ui/slint 13.54 12.0 / 12.8 / 14.1 0.45 ┣━━━┻━━╋━━┻━●━┫
SoftwareBrothers/admin-bro 2.48 2.3 / 2.4 / 2.7 0.11 ┣━━┻━━╋━●┻━━┫
sveltejs/svelte 21.02 19.4 / 20.0 / 20.9 0.34 ┣━━━┻━━╋━━┻━━━┫ ●
TheAlgorithms/Python 5.48 5.2 / 5.4 / 6.4 0.22 ┣━━┻━━╋●━┻━━┫
twbs/bootstrap 1.54 1.6 / 1.7 / 2.0 0.08 ● ┣━┻━━╋━━┻━┫
typescript-cheatsheets/react 1.30 1.3 / 1.3 / 1.5 0.06 ┣━┻●━╋━━┻━┫
typescript-eslint/typescript-eslint 3.96 3.8 / 4.0 / 5.0 0.21 ┣━━┻━●╋━━┻━━┫
vitest-dev/vitest 10.53 9.4 / 10.7 / 11.7 0.50 ┣━━┻━●╋━━┻━━┫
w3c/aria-practices 3.13 3.1 / 3.2 / 3.6 0.11 ┣━━┻●━╋━━┻━━┫
w3c/specberus 1.88 1.8 / 1.9 / 2.2 0.09 ┣━━┻━━●━━┻━━┫
webdeveric/webpack-assets-manifest 1.20 1.0 / 1.2 / 1.4 0.08 ┣━┻━━●━━┻━┫
webpack/webpack 4.95 4.7 / 5.0 / 5.6 0.20 ┣━━┻━●╋━━┻━━┫
wireapp/wire-desktop 1.40 1.2 / 1.3 / 1.6 0.09 ┣━┻━━╋━━●━┫
wireapp/wire-webapp 10.72 10.3 / 10.8 / 11.8 0.38 ┣━━┻━●╋━━┻━━┫

Note:

  • Elapsed time is in seconds.
Files per Second over Time
Repository Files Sec Fps Rel Trend Fps N
AdaDoom3/AdaDoom3 103 2.75 37.40 0.34% ▆▆▆███▇▇█▇▅▇▆▆▇▇▆▅▆▇ 59
alexiosc/megistos 583 7.21 80.83 -2.81% ▆▆▅▆▅▆▅▆▆▅▇▆▇▇█▅█▅▇▆ 59
apollographql/apollo-server 254 2.43 104.64 3.25% ▅▇▅▆▅▇▇██▇▃█▅▆▇▄▇▇▇█ 59
aspnetboilerplate/aspnetboilerplate 2286 8.87 257.67 -1.39% █▇▇▇▇▇▇▆▇▇▇▇▇▇▆██▆▇▇ 59
aws-amplify/docs 2874 12.41 231.62 -5.24% ▇▆▆▆▇▇▇▇▇▇▇▇▇▆█▇▇▇▇▅ 59
Azure/azure-rest-api-specs 2444 9.11 268.41 2.59% █▅▆▇▅▆▇▅▆▅▆▅▅▆▇▇▇▆▆▇ 59
bitjson/typescript-starter 20 1.01 19.76 2.08% ▅█▇█▆▆▇█▇█▇▆▆▃█▅█▇▅▇ 59
caddyserver/caddy 295 3.32 88.86 1.59% ▆█▇▅▃▇▇▆▇▇█▆▇█▇▆▄▆█▇ 59
canada-ca/open-source-logiciel-libre 7 1.12 6.24 -5.62% ▇▆▅▅▇▃▇▇█▇▆▃▇▇▄▄▆▇▇▅ 59
chef/chef 1199 5.30 226.10 0.84% ▇▆▇▄▅▅▆▅▇▆▇▆▆▆█▆█▅▇▇ 59
dart-lang/sdk 10988 55.96 196.35 -2.93% █▆▇▇▇█▆█▆▇▆▇▇▇█▇█▇█▆ 59
django/django 2891 13.47 214.67 -0.40% ▄▆▇▇▇▆▇▇▄▆██▇▅█▆▇▇▅▇ 59
eslint/eslint 2060 9.67 213.09 -1.90% ▇▇▇▇███▆▇██▆█▆█▄▇▆█▆ 59
exonum/exonum 421 3.41 123.51 -2.13% ▇▆█▇▇▇▇▅▆▇▇█▇▄▆▅▇█▆▆ 59
flutter/samples 2561 14.24 179.91 3.40% ▇▇▇▇▇▇▇▇█▃▇█▇▇▇▆▆███ 59
gitbucket/gitbucket 414 3.14 131.86 0.73% █▇▇▄█▅▆▆▇█▆▆▇▇▇█▄▇▆▇ 59
googleapis/google-cloud-cpp 21165 121.86 173.68 -1.86% ▇█▇██▇▇▇█▇▇█▇▇███▇▇▇ 59
graphql/express-graphql 26 1.06 24.64 2.87% ▇▆▇▅▂▇▇▆▄▇▇█▅▅▇▆█▆▄▇ 59
graphql/graphql-js 368 2.69 136.95 -1.11% ▅▇▄▇▆▇▇▅▆▆▅▆▇█▇▇▆▇▇▆ 59
graphql/graphql-relay-js 28 1.10 25.52 0.15% ▆▇▇▇█▆▆▄▆▇▆▅▆█▆▇▇▄▇▆ 59
graphql/graphql-spec 19 1.35 14.06 -6.59% ▆▆██▇▄▇▃▆█▇▆▇▆▅▇▇▆▇▄ 59
iluwatar/java-design-patterns 2039 11.42 178.51 1.22% ▆▇▅▆▅▇▆▇▇█▇█▆▇▅█▇█▆█ 59
ktaranov/sqlserver-kit 490 5.80 84.44 1.51% ▆▆▇▆▇▅▃▆▆▇▇▆▅█▆▆▆▇▆▇ 59
liriliri/licia 1437 4.36 329.33 -12.51% ▅▆▅▄▆▄▄▆▇▅▅▆▅▆▆▅▆▆█▂ 59
MartinThoma/LaTeX-examples 1409 6.05 232.74 0.26% ▆▄▇▇███▇▆▅█▇█▆▆▆▆▆▆▇ 59
mdx-js/mdx 141 1.88 74.92 -5.65% ▄▄▇▇█▅▇▇▆██▅▆▅█▇█▅▇▅ 59
microsoft/TypeScript-Website 761 5.00 152.26 2.49% ▆█▆▅▆▆█▅▇▆▆▆▆▇█▇▇▆▇▇ 59
MicrosoftDocs/PowerShell-Docs 2648 19.94 132.77 0.61% ██▅█▅██▇▇▄▆█▇▇▄▇▆▇▇▇ 59
neovim/nvim-lspconfig 770 3.87 198.97 2.58% ▄▇▆▆▆▇▇▇▇▇▇██▆▇▇▆▆▅▇ 59
pagekit/pagekit 741 3.63 203.99 -6.49% ▇▇███▇▇█▇▄█▅█▇█▆▇▄▇▅ 59
php/php-src 2274 23.32 97.51 -0.67% █▇██▆█████▇▃███▆█▇█▇ 59
plasticrake/tplink-smarthome-api 62 1.39 44.67 -6.45% ▆▇▅▇▆▇▇█▇▇▅▅▇▇█▇▂▅▆▆ 59
prettier/prettier 2664 7.34 363.00 3.71% ▇▇▆█▆█▇▆▇▆▇█▇█▇▇▇▅▆▇ 59
pycontribs/jira 79 1.40 56.33 3.61% ▆▃▇▇▇█▆█▇▆▇▆▅▇▅█▇▅▆▇ 59
RustPython/RustPython 754 6.16 122.32 0.08% ▇▆▆▇▇▆▅▇▆█▇▇▆▇▆▆█▇█▇ 59
shoelace-style/shoelace 439 2.78 157.72 -2.14% ▆▇▆▆▇▆▆▅▅█▄▆▅▇▆█▄▇▇▆ 59
slint-ui/slint 2786 13.54 205.73 -3.25% ████▇██▇▄▇█▇▇▇▆▅██▇▆ 59
SoftwareBrothers/admin-bro 441 2.48 178.13 -3.37% ▅▇▇▇█▅▇▇█▆▇▅█▇▇▇▆█▄▆ 59
sveltejs/svelte 8453 21.02 402.21 -3.97% ▇▇▇▆▇██▇▅█▇▇▆▇▇▇█▆▇▅ 59
TheAlgorithms/Python 1401 5.48 255.70 -0.81% █▇▆▆▇▆▃█▃█▆▇▆█▇▇▆▆▇▇ 59
twbs/bootstrap 118 1.54 76.41 12.11% ▆▆▆▄▆▄▆▆▄▅▄▅▆▆▆▆▆▅▆█ 59
typescript-cheatsheets/react 53 1.30 40.89 3.76% ▆▆▄▆▇▆▇▇▄▇▆▇▆▄▆█▃▆▇▇ 59
typescript-eslint/typescript-eslint 1306 3.96 329.84 1.17% ▆▇▄▅▅▇▇▇█▇▆▇▇▆▆█▇▇▆▇ 59
vitest-dev/vitest 2525 10.53 239.70 2.94% ▅▄▆▅▄▆▆█▆▅▅▅▆▆▅▆▇▅▄▆ 59
w3c/aria-practices 414 3.13 132.26 2.51% ▇▇█▇▇▆▇▇▇▇▇▆▆▆█▆▇▇▇▇ 59
w3c/specberus 197 1.88 104.57 0.45% ▇▇█▆▇▃▇▇▇▄▆▇▇▇▇█▅▇▇▇ 59
webdeveric/webpack-assets-manifest 55 1.20 45.95 0.16% ██▇▄▄▄█▃██▆▆▆▅▄▆▇▇▇▆ 59
webpack/webpack 1143 4.95 231.02 1.25% ▅▇▇▆▇█▅▅█▅▆▇▅▆▇▃▆█▆▇ 59
wireapp/wire-desktop 44 1.40 31.35 -6.93% ▇▆▇▇▇▅▅▄█▇▅▇▇▇▄▆▆▇▆▅ 59
wireapp/wire-webapp 2084 10.72 194.32 1.22% ████▇▅███▅▇█▆▇▆▇▆▆█▇ 58
Data Throughput
Repository Files Sec Kps Rel Trend Kps N
AdaDoom3/AdaDoom3 103 2.75 794.75 0.34% ▆▆▆███▇▇█▇▅▇▆▆▇▇▆▅▆▇ 59
alexiosc/megistos 583 7.21 635.16 -2.81% ▆▆▅▆▅▆▅▆▆▅▇▆▇▇█▅█▅▇▆ 59
apollographql/apollo-server 254 2.43 859.77 3.54% ▅▇▅▆▅▇▇██▇▃█▅▆▇▄▇▇▇█ 59
aspnetboilerplate/aspnetboilerplate 2286 8.87 626.93 -1.39% █▇▇▇▇▇▇▆▇▇▇▇▇▇▆██▆▇▇ 59
aws-amplify/docs 2874 12.41 809.87 -5.21% ▇▆▆▆▇▇▇▇▇▇▇▇▇▆█▇▇▇▇▅ 59
Azure/azure-rest-api-specs 2444 9.11 703.54 2.14% █▅▆▇▅▆▇▅▆▆▆▅▅▆▇▇▇▆▆▇ 59
bitjson/typescript-starter 20 1.01 79.02 2.08% ▅█▇█▆▆▇█▇█▇▆▆▃█▅█▇▅▇ 59
caddyserver/caddy 295 3.32 775.92 1.26% ▆█▇▆▃▇▇▆▇▇█▆▇█▇▆▄▆█▇ 59
canada-ca/open-source-logiciel-libre 7 1.12 51.68 -5.62% ▇▆▅▅▇▃▇▇█▇▆▃▇▇▄▄▆▇▇▅ 59
chef/chef 1199 5.30 1060.72 1.02% ▇▆▇▄▅▅▆▅▇▆▇▆▆▆█▆█▅▇▇ 59
dart-lang/sdk 10988 55.96 1334.95 -2.90% █▆▆▇▇█▆█▆▇▇▇▇▇█▇█▇█▆ 59
django/django 2891 13.47 1356.41 -0.24% ▄▆▇▇▇▆▇▇▄▆██▇▆█▆▇▇▅▇ 59
eslint/eslint 2060 9.67 1479.14 -1.72% ▇▇▇▇███▆▇██▆█▆█▄▇▆█▇ 59
exonum/exonum 421 3.41 1181.43 -2.13% ▇▆█▇▇▇▇▅▆▇▇█▇▄▆▅▇█▆▆ 59
flutter/samples 2561 14.24 1519.61 0.15% ▇▇██▇██▇█▃▇█▇█▇▆▆███ 59
gitbucket/gitbucket 414 3.14 602.91 1.01% █▇▇▄█▅▆▆▇█▆▇█▇▇█▄▇▆▇ 59
googleapis/google-cloud-cpp 21165 121.86 1411.23 -2.04% ▇█▇██▇▇▇█▇▇█▇▇███▇▇▇ 59
graphql/express-graphql 26 1.06 112.77 2.87% ▇▆▇▅▂▇▇▆▄▇▇█▅▅▇▆█▆▄▇ 59
graphql/graphql-js 368 2.69 797.49 -1.00% ▅█▅▇▆▇▇▅▆▆▅▆▇█▇▇▆▇▇▆ 59
graphql/graphql-relay-js 28 1.10 100.27 0.15% ▆▇▇▇█▆▆▄▆▇▆▅▆█▆▇▇▄▇▆ 59
graphql/graphql-spec 19 1.35 469.20 -6.59% ▆▆██▇▄▇▃▆█▇▆▇▆▅▇▇▆▇▄ 59
iluwatar/java-design-patterns 2039 11.42 552.25 1.29% ▆▇▅▆▅▇▆▇▇█▇█▆▇▅█▇█▆█ 59
ktaranov/sqlserver-kit 490 5.80 1276.47 1.42% ▆▆▇▆▇▅▃▆▆▇▇▆▅█▆▆▆▇▆▇ 59
liriliri/licia 1437 4.36 392.35 -12.51% ▅▆▅▄▆▄▄▆▇▅▅▆▅▆▆▅▆▆█▂ 59
MartinThoma/LaTeX-examples 1409 6.05 480.68 0.26% ▆▄▇▇███▇▆▅█▇█▆▆▆▆▆▆▇ 59
mdx-js/mdx 141 1.88 348.04 -5.65% ▄▄▇▇█▅▇▇▆██▅▆▅█▇█▅▇▅ 59
microsoft/TypeScript-Website 761 5.00 1052.99 2.47% ▆█▆▅▆▆█▅▇▆▆▆▆▇█▇▇▆▇▇ 59
MicrosoftDocs/PowerShell-Docs 2648 19.94 1388.15 0.62% ██▅█▅██▇▇▄▆█▇▇▄▇▆▇▇▇ 59
neovim/nvim-lspconfig 770 3.87 378.82 4.21% ▄▇▆▆▆▇▇▇▇▇▇██▆▇▇▇▆▅█ 59
pagekit/pagekit 741 3.63 425.33 -6.49% ▇▇███▇▇█▇▄█▅█▇█▆▇▄▇▅ 59
php/php-src 2274 23.32 1697.00 -0.89% █▇██▆█████▇▃███▆█▇█▇ 59
plasticrake/tplink-smarthome-api 62 1.39 241.35 -6.45% ▆▇▅▇▆▇▇█▇▇▅▅▇▇█▇▂▅▆▆ 59
prettier/prettier 2664 7.34 499.40 2.60% ▇▇▆█▆█▇▆▇▆▇█▇█▇▇▇▅▆▇ 59
pycontribs/jira 79 1.40 399.31 3.61% ▆▃▇▇▇█▆█▇▆▇▆▅▇▅█▇▅▆▇ 59
RustPython/RustPython 754 6.16 1782.98 8.17% ▆▅▅▇▇▇▆▇▇█▇▇▆▇▇▇█▇█▇ 59
shoelace-style/shoelace 439 2.78 761.99 -2.14% ▆▇▆▆▇▆▆▅▅█▄▆▅▇▆█▄▇▇▆ 59
slint-ui/slint 2786 13.54 1276.78 -3.55% ████▇██▆▄▆▇▇▇▇▆▄▇▇▆▆ 59
SoftwareBrothers/admin-bro 441 2.48 392.62 -3.37% ▅▇▇▇█▅▇▇█▆▇▅█▇▇▇▆█▄▆ 59
sveltejs/svelte 8453 21.02 271.26 -3.71% █▇▇▆▇██▇▅█▇▇▆▇▇▇█▆█▅ 59
TheAlgorithms/Python 1401 5.48 651.03 -0.81% █▇▆▆▇▆▃█▃█▆▇▆█▇▇▆▆▇▇ 59
twbs/bootstrap 118 1.54 627.47 12.11% ▆▆▆▄▆▄▆▆▄▅▄▅▆▆▆▆▆▅▆█ 59
typescript-cheatsheets/react 53 1.30 303.22 4.02% ▆▆▄▆▇▆▇▇▄▇▆▇▆▄▆█▃▆▇█ 59
typescript-eslint/typescript-eslint 1306 3.96 1740.10 1.45% ▆▇▄▅▅▇▇▇█▇▆▇▇▆▆█▇▇▆▇ 59
vitest-dev/vitest 2525 10.53 720.15 4.72% ▅▄▅▅▅▆▆█▆▆▅▅▆▆▅▆▇▅▄▆ 59
w3c/aria-practices 414 3.13 1235.40 2.54% ▇▇█▇▇▆▇▇▇▇▇▆▆▆█▆▇▇▇▇ 59
w3c/specberus 197 1.88 331.77 0.69% ▇▇█▆█▃▇▇▇▅▆▇▇▇▇█▅▇▇▇ 59
webdeveric/webpack-assets-manifest 55 1.20 105.26 0.16% ██▇▄▄▄█▃██▆▆▆▅▄▆▇▇▇▆ 59
webpack/webpack 1143 4.95 1079.30 1.62% ▅▇▇▆▇█▅▅█▅▆▇▅▆▇▃▆█▆▇ 59
wireapp/wire-desktop 44 1.40 139.64 -6.93% ▇▆▇▇▇▅▅▄█▇▅▇▇▇▄▆▆▇▆▅ 59
wireapp/wire-webapp 2084 10.72 756.02 1.24% ████▇▅██▇▅▇█▆▇▆▇▆▆█▇ 58

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request is part of a "Substitution" feature series (Part 2), focusing on reorganizing type definitions and adding utility functions for text transformation and source mapping. The main purpose is to consolidate Parser-related types and introduce new mapping utilities needed for the substitution feature.

Changes:

  • Reorganizes type definitions by moving MappedText, Range, and SourceMap from root-level exports to the Parser directory structure
  • Adds new source map manipulation functions (mapOffsetToSource, mapRangeToSource, mergeSourceMaps) to support text transformation workflows
  • Introduces API declaration file generation for documentation purposes via separate tsdown build configurations

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/cspell-types/tsdown.config.mts Adds API-only build configurations to generate declaration files in api/ directory for main and Parser exports
packages/cspell-types/src/index.ts Updates exports to import MappedText, Range, and SourceMap from Parser directory instead of root TextMap.ts
packages/cspell-types/src/TextMap.ts Removed (deleted file) - types migrated to Parser directory
packages/cspell-types/src/Parser/types.ts New file defining SourceMap and Range types with comprehensive documentation
packages/cspell-types/src/Parser/parser.ts Refactored from index.ts - extracts parser-related interfaces and types
packages/cspell-types/src/Parser/index.ts Simplified to re-export types from parser.ts, TextMap.ts, and types.ts
packages/cspell-types/src/Parser/TextMap.ts New file defining MappedText type (moved from root)
packages/cspell-types/src/Parser/Mapped.ts New file defining Mapped interface with range and optional source map
packages/cspell-types/api/index.d.mts Generated API declaration file (2163 lines)
packages/cspell-types/api/Parser/index.d.mts Generated Parser API declaration file (160 lines)
packages/cspell-lib/tsdown.config.ts Corrects comment from "The API" to "Testing the Plugin" for btrie bundle configuration
packages/cspell-lib/src/lib/Transform/TextRange.ts Improves toMatchRangeWithText to use RegExp.indices API and adds return type annotation
packages/cspell-lib/src/lib/Transform/TextMap.ts Adds three new utility functions for source map manipulation and refactors extractTextMapRangeOrigin
packages/cspell-lib/src/lib/Transform/TextMap.test.ts Adds comprehensive tests for new source map functions and substitution transformers
packages/cspell-lib/src/lib/Transform/SubstitutionTransformer.test.ts Updates test name for clarity
cspell.json Adds api/ directory to spell-check ignore paths

@Jason3S Jason3S marked this pull request as ready for review February 19, 2026 10:38
@Jason3S Jason3S merged commit 762f364 into main Feb 19, 2026
87 checks passed
@Jason3S Jason3S deleted the dev-map branch February 19, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments