Skip to content

Commit 36b4629

Browse files
committed
still trying to get the indenting correct
1 parent 1b3da90 commit 36b4629

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/compiler/parser.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3822,27 +3822,27 @@ module ts {
38223822
}
38233823
else {
38243824
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;
38273827
var length = end - start;
3828-
3828+
38293829
if (!matchResult) {
38303830
errorAtPos(start, length, Diagnostics.Invalid_reference_directive_syntax);
38313831
}
38323832
else {
3833-
var referenceFilename = matchResult[3];
3833+
var referenceFilename = matchResult[3];
38343834
var basePath = getDirectoryPath(file.filename);
38353835
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+
}
38463846
}
38473847
}
38483848
}

0 commit comments

Comments
 (0)