Skip to content

Commit a12c35b

Browse files
committed
fixing formatting again...
1 parent e11ee0f commit a12c35b

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

src/compiler/parser.ts

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3822,26 +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+
38283829
if (!matchResult) {
38293830
errorAtPos(start, length, Diagnostics.Invalid_reference_directive_syntax);
38303831
}
38313832
else {
3832-
var referenceFilename = matchResult[3];
3833+
var referenceFilename = matchResult[3];
38333834
var basePath = getDirectoryPath(file.filename);
38343835
var referenceFullPath = normalizePath(combinePaths(basePath, referenceFilename));
3835-
if (file.filename === referenceFullPath) {
3836-
errorAtPos(start, length, Diagnostics.A_file_cannot_have_a_reference_to_itself);
3837-
}
3838-
else {
3839-
referencedFiles.push({
3840-
pos: start,
3841-
end: end,
3842-
filename: referenceFilename
3843-
});
3844-
}
3836+
if (file.filename === referenceFullPath) {
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+
}
38453846
}
38463847
}
38473848
}

0 commit comments

Comments
 (0)