(useSite *Node)
| 3103 | } |
| 3104 | |
| 3105 | func IsValidTypeOnlyAliasUseSite(useSite *Node) bool { |
| 3106 | return useSite.Flags&(NodeFlagsAmbient|NodeFlagsJSDoc) != 0 || |
| 3107 | IsPartOfTypeQuery(useSite) || |
| 3108 | isIdentifierInNonEmittingHeritageClause(useSite) || |
| 3109 | isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || |
| 3110 | !(IsExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite)) |
| 3111 | } |
| 3112 | |
| 3113 | func isIdentifierInNonEmittingHeritageClause(node *Node) bool { |
| 3114 | if !IsIdentifier(node) { |
no test coverage detected