File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ export namespace Location {
254254 */
255255 export function is ( value : any ) : value is Location {
256256 let candidate = value as Location ;
257- return Is . defined ( candidate ) && Range . is ( candidate . range ) && ( Is . string ( candidate . uri ) || Is . undefined ( candidate . uri ) ) ;
257+ return Is . objectLiteral ( candidate ) && Range . is ( candidate . range ) && ( Is . string ( candidate . uri ) || Is . undefined ( candidate . uri ) ) ;
258258 }
259259}
260260
@@ -312,7 +312,7 @@ export namespace LocationLink {
312312 */
313313 export function is ( value : any ) : value is LocationLink {
314314 let candidate = value as LocationLink ;
315- return Is . defined ( candidate ) && Range . is ( candidate . targetRange ) && Is . string ( candidate . targetUri )
315+ return Is . objectLiteral ( candidate ) && Range . is ( candidate . targetRange ) && Is . string ( candidate . targetUri )
316316 && Range . is ( candidate . targetSelectionRange )
317317 && ( Range . is ( candidate . originSelectionRange ) || Is . undefined ( candidate . originSelectionRange ) ) ;
318318 }
You can’t perform that action at this time.
0 commit comments