Update comment

This commit is contained in:
Kanchalai Tanglertsampan
2017-02-09 12:40:15 -08:00
parent 6dec0f5ea6
commit e9a578c53c

View File

@@ -14179,6 +14179,7 @@ namespace ts {
* otherwise return undefined if tag-name of the opening-like element doesn't have call signatures
*/
function resolveStatelessJsxOpeningLikeElement(openingLikeElement: JsxOpeningLikeElement, elementType: Type, candidatesOutArray: Signature[]): Signature {
// If this function is called from language service, elementType can be a union type. This is not possible if the function is called from compiler (see: resolveCustomJsxElementAttributesType)
if (elementType.flags & TypeFlags.Union) {
const types = (elementType as UnionType).types;
let result: Signature;