File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -3822,27 +3822,27 @@ module ts {
3822
3822
}
3823
3823
else {
3824
3824
var matchResult = fullTripleSlashReferencePathRegEx . exec ( comment ) ;
3825
- var start = range . pos ;
3826
- var end = range . end ;
3825
+ var start = range . pos ;
3826
+ var end = range . end ;
3827
3827
var length = end - start ;
3828
-
3828
+
3829
3829
if ( ! matchResult ) {
3830
3830
errorAtPos ( start , length , Diagnostics . Invalid_reference_directive_syntax ) ;
3831
3831
}
3832
3832
else {
3833
- var referenceFilename = matchResult [ 3 ] ;
3833
+ var referenceFilename = matchResult [ 3 ] ;
3834
3834
var basePath = getDirectoryPath ( file . filename ) ;
3835
3835
var referenceFullPath = normalizePath ( combinePaths ( basePath , referenceFilename ) ) ;
3836
- if ( file . filename . toLocaleLowerCase ( ) === referenceFullPath . toLocaleLowerCase ( ) ) {
3837
- errorAtPos ( start , length , Diagnostics . A_file_cannot_have_a_reference_to_itself ) ;
3838
- }
3839
- else {
3840
- referencedFiles . push ( {
3841
- pos : start ,
3842
- end : end ,
3843
- filename : referenceFilename
3844
- } ) ;
3845
- }
3836
+ if ( file . filename . toLocaleLowerCase ( ) === referenceFullPath . toLocaleLowerCase ( ) ) {
3837
+ errorAtPos ( start , length , Diagnostics . A_file_cannot_have_a_reference_to_itself ) ;
3838
+ }
3839
+ else {
3840
+ referencedFiles . push ( {
3841
+ pos : start ,
3842
+ end : end ,
3843
+ filename : referenceFilename
3844
+ } ) ;
3845
+ }
3846
3846
}
3847
3847
}
3848
3848
}
You can’t perform that action at this time.
0 commit comments