- [SIZE]T 的 SIZE 是值表达式,允许任意整型常量运算(如 [MAX_VOLUMES * MAX_PARTITIONS]uint8 / [N - 1]uint8 / [1 << 3]uint8)。 parser:解析 SIZE 期间清除 _isParsingTypeAnnotation,否则 Viper 的 「星号是指针后缀 + 注解中停止解析」分支会吞掉 '*',误报「[ 未关闭」与 「类型表达式中不允许使用解包运算符」。 evaluator:operations 的 TypeExpression 分支新增整型常量算术放行 (isViperIntegerConstantArithmetic),此前注释已写明但代码未实现, t.CArray[T, MAX_ORDER + 1] 同样受益;类名相加仍报 binaryOperationNotAllowed。 - const 指针(lfn: const str = CConst | str)只读:解引用读允许 (*lfn / lfn[0] → char,getTypeOfViperDeref 跳过 C 修饰符子类型, 不再误报 类型"const str"不支持运算符"*"),解引用赋值报新诊断 viperConstDerefAssignment(*lfn = c);非 const 指针 *buf = c 仍合法。 - 新增 viperBracketArrayAndConstPtr.test.ts(3 用例);全量 jest 800 → 803 通过。
159 lines
3.1 KiB
Plaintext
159 lines
3.1 KiB
Plaintext
# Logs
|
|
logs
|
|
*.log
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
lerna-debug.log*
|
|
|
|
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
|
|
# Runtime data
|
|
pids
|
|
*.pid
|
|
*.seed
|
|
*.pid.lock
|
|
|
|
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
lib-cov
|
|
|
|
# Coverage directory used by tools like istanbul
|
|
coverage
|
|
*.lcov
|
|
|
|
# nyc test coverage
|
|
.nyc_output
|
|
|
|
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
|
.grunt
|
|
|
|
# Bower dependency directory (https://bower.io/)
|
|
bower_components
|
|
|
|
# node-waf configuration
|
|
.lock-wscript
|
|
|
|
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
build/Release
|
|
|
|
# Dependency directories
|
|
node_modules/
|
|
jspm_packages/
|
|
|
|
# Snowpack dependency directory (https://snowpack.dev/)
|
|
web_modules/
|
|
|
|
# TypeScript cache
|
|
*.tsbuildinfo
|
|
|
|
# Optional npm cache directory
|
|
.npm
|
|
|
|
# Optional eslint cache
|
|
.eslintcache
|
|
|
|
# Microbundle cache
|
|
.rpt2_cache/
|
|
.rts2_cache_cjs/
|
|
.rts2_cache_es/
|
|
.rts2_cache_umd/
|
|
|
|
# Optional REPL history
|
|
.node_repl_history
|
|
|
|
# Output of 'npm pack'
|
|
*.tgz
|
|
|
|
# Yarn Integrity file
|
|
.yarn-integrity
|
|
|
|
# dotenv environment variables file
|
|
.env
|
|
.env.test
|
|
|
|
# parcel-bundler cache (https://parceljs.org/)
|
|
.cache
|
|
.parcel-cache
|
|
|
|
# Next.js build output
|
|
.next
|
|
out
|
|
|
|
# Nuxt.js build / generate output
|
|
.nuxt
|
|
dist
|
|
|
|
# Gatsby files
|
|
.cache/
|
|
# Comment in the public line in if your project uses Gatsby and not Next.js
|
|
# https://nextjs.org/blog/next-9-1#public-directory-support
|
|
# public
|
|
|
|
# vuepress build output
|
|
.vuepress/dist
|
|
|
|
# Serverless directories
|
|
.serverless/
|
|
|
|
# FuseBox cache
|
|
.fusebox/
|
|
|
|
# DynamoDB Local files
|
|
.dynamodb/
|
|
|
|
# TernJS port file
|
|
.tern-port
|
|
|
|
# Stores VSCode versions used for testing VSCode extensions
|
|
.vscode-test
|
|
|
|
# yarn v2
|
|
.yarn/cache
|
|
.yarn/unplugged
|
|
.yarn/build-state.yml
|
|
.yarn/install-state.gz
|
|
.pnp.*
|
|
|
|
*.vsix
|
|
junit.xml
|
|
|
|
.webpack_cache/
|
|
|
|
# OS files
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Potential venv
|
|
.venv
|
|
|
|
# Agent files
|
|
serena/
|
|
.beads/
|
|
AGENTS.md
|
|
|
|
# Generated benchmark output
|
|
packages/vipeye-internal/src/tests/benchmarks/.generated/
|
|
|
|
# 测试运行生成的产物(每次跑 jest 都会被重写,不入库)
|
|
packages/vipeye-internal/src/tests/__ty_narrow_dump.txt
|
|
packages/vipeye-internal/src/tests/__unary_ptr__/
|
|
packages/vipeye-internal/src/tests/__global_redeclare__/
|
|
packages/vipeye-internal/src/tests/__viper_attribute__/
|
|
packages/vipeye-internal/src/tests/__viper_attribute_completion__/
|
|
packages/vipeye-internal/src/tests/__viper_attribute_hover__/
|
|
packages/vipeye-internal/src/tests/__viper_attribute_prefix__/
|
|
packages/vipeye-internal/src/tests/__viper_attribute_noimport__/
|
|
packages/vipeye-internal/src/tests/__viper_attribute_implicit_scope__/
|
|
packages/vipeye-internal/src/tests/__viper_volatile__/
|
|
packages/vipeye-internal/src/tests/__viper_volatile_bad__/
|
|
packages/vipeye-internal/src/tests/__viper_callable__/
|
|
packages/vipeye-internal/src/tests/__viper_static__/
|
|
packages/vipeye-internal/src/tests/__viper_bracket_array_expr__/
|
|
packages/vipeye-internal/src/tests/__viper_type_binop_bound__/
|
|
packages/vipeye-internal/src/tests/__viper_const_ptr_deref__/
|
|
|
|
# perfCompare.py cached commit bundles
|
|
/build/perfCompare/
|
|
|
|
*.vsix |