* @param {"derived"|"props"|"bindable"} rune
(rune)
| 275 | * @param {"derived"|"props"|"bindable"} rune |
| 276 | */ |
| 277 | function check_rune_binding(rune) { |
| 278 | const has_rune_binding = !!state.scope.get(rune); |
| 279 | if (has_rune_binding) { |
| 280 | throw new MigrationError( |
| 281 | `migrating this component would require adding a \`$${rune}\` rune but there's already a variable named ${rune}.\n Rename the variable and try again or migrate by hand.` |
| 282 | ); |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | if (state.props.length > 0 || analysis.uses_rest_props || analysis.uses_props) { |
| 287 | const has_many_props = state.props.length > 3; |
no test coverage detected