@tishlang/tish 2.0.2 → 2.0.3

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/bin/tish CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "tishlang"
3
- version = "2.0.2"
3
+ version = "2.0.3"
4
4
  edition = "2021"
5
5
  description = "Tish CLI - run, REPL, compile to native"
6
6
  license-file = { workspace = true }
@@ -435,6 +435,7 @@ fn collect_expr(
435
435
  collect_expr(value, source, lsp_line, lsp_char, best);
436
436
  }
437
437
  Expr::TypeOf { operand, .. } => collect_expr(operand, source, lsp_line, lsp_char, best),
438
+ Expr::Delete { target: del, .. } => collect_expr(del, source, lsp_line, lsp_char, best),
438
439
  Expr::PostfixInc { name, span } | Expr::PostfixDec { name, span } => {
439
440
  let sp = synthetic_name_span(span.start, name.as_ref());
440
441
  consider(source, lsp_line, lsp_char, &sp, name.clone(), best);
@@ -695,6 +696,9 @@ fn member_chain_collect_expr(
695
696
  Expr::TypeOf { operand, .. } => {
696
697
  member_chain_collect_expr(operand, source, lsp_line, lsp_char, best)
697
698
  }
699
+ Expr::Delete { target: del, .. } => {
700
+ member_chain_collect_expr(del, source, lsp_line, lsp_char, best)
701
+ }
698
702
  Expr::PostfixInc { .. }
699
703
  | Expr::PostfixDec { .. }
700
704
  | Expr::PrefixInc { .. }
@@ -1127,6 +1131,7 @@ fn walk_expr_resolve(
1127
1131
  None
1128
1132
  }
1129
1133
  Expr::TypeOf { operand, .. } => walk_expr_resolve(operand, scopes, target),
1134
+ Expr::Delete { target: del, .. } => walk_expr_resolve(del, scopes, target),
1130
1135
  Expr::MemberAssign { object, value, .. } => walk_expr_resolve(object, scopes, target)
1131
1136
  .or_else(|| walk_expr_resolve(value, scopes, target)),
1132
1137
  Expr::IndexAssign {
@@ -1669,6 +1674,7 @@ fn check_unresolved_expr(expr: &Expr, scopes: &ScopeStack, out: &mut Vec<Unresol
1669
1674
  }
1670
1675
  }
1671
1676
  Expr::TypeOf { operand, .. } => check_unresolved_expr(operand, scopes, out),
1677
+ Expr::Delete { target: del, .. } => check_unresolved_expr(del, scopes, out),
1672
1678
  Expr::MemberAssign { object, value, .. } => {
1673
1679
  check_unresolved_expr(object, scopes, out);
1674
1680
  check_unresolved_expr(value, scopes, out);
@@ -2142,6 +2148,7 @@ fn enumerate_expr(expr: &Expr, exported: bool, out: &mut Vec<BindingSite>) {
2142
2148
  | Expr::PrefixInc { .. }
2143
2149
  | Expr::PrefixDec { .. } => {}
2144
2150
  Expr::TypeOf { operand, .. } => enumerate_expr(operand, exported, out),
2151
+ Expr::Delete { target: del, .. } => enumerate_expr(del, exported, out),
2145
2152
  Expr::MemberAssign { object, value, .. } => {
2146
2153
  enumerate_expr(object, exported, out);
2147
2154
  enumerate_expr(value, exported, out);
@@ -2801,6 +2808,9 @@ fn walk_expr_completion(
2801
2808
  Expr::TypeOf { operand, .. } => {
2802
2809
  walk_expr_completion(operand, source, lsp_line, lsp_char, stack, best)
2803
2810
  }
2811
+ Expr::Delete { target: del, .. } => {
2812
+ walk_expr_completion(del, source, lsp_line, lsp_char, stack, best)
2813
+ }
2804
2814
  Expr::MemberAssign { object, value, .. } => {
2805
2815
  walk_expr_completion(object, source, lsp_line, lsp_char, stack, best);
2806
2816
  walk_expr_completion(value, source, lsp_line, lsp_char, stack, best);
@@ -3384,6 +3394,7 @@ fn refs_expr(
3384
3394
  refs_expr(value, program, source, name, def_span, out);
3385
3395
  }
3386
3396
  Expr::TypeOf { operand, .. } => refs_expr(operand, program, source, name, def_span, out),
3397
+ Expr::Delete { target: del, .. } => refs_expr(del, program, source, name, def_span, out),
3387
3398
  Expr::PostfixInc { name: n, span } | Expr::PostfixDec { name: n, span } => {
3388
3399
  let sp = synthetic_name_span(span.start, n.as_ref());
3389
3400
  maybe_push(&sp, n, out);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tishlang/tish",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Tish - minimal TS/JS-compatible language. Run, REPL, build to native or other targets.",
5
5
  "license": "PIF",
6
6
  "repository": {
Binary file
Binary file
Binary file
Binary file
Binary file