next.js/.config/ast-grep/rule-tests/no-context-test.yml
no-context-test.yml12 lines397 B
id: no-context
valid:
  - 'let chunking_context = ChunkingContext::new();'
  - 'struct Foo { chunking_context: Context };'
  - 'foo(|chunking_context| context)'
  - 'fn foo(chunking_context: ChunkingContext) -> u32 { 5 };'
invalid:
  - 'let context = ChunkingContext::new();'
  - 'struct Foo { context: Context };'
  - 'foo(|context| context)'
  - 'fn foo(context: ChunkingContext) -> u32 { 5 };'
Quest for Codev2.0.0
/
SIGN IN