(prop: DirectiveNode | AttributeNode)
| 402 | } |
| 403 | |
| 404 | function isTrueFalseValue(prop: DirectiveNode | AttributeNode) { |
| 405 | if (prop.type === NodeTypes.DIRECTIVE) { |
| 406 | return ( |
| 407 | prop.name === 'bind' && |
| 408 | prop.arg && |
| 409 | isStaticExp(prop.arg) && |
| 410 | (prop.arg.content === 'true-value' || prop.arg.content === 'false-value') |
| 411 | ) |
| 412 | } else { |
| 413 | return prop.name === 'true-value' || prop.name === 'false-value' |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | function isTextareaWithValue( |
| 418 | node: PlainElementNode, |
no test coverage detected