Skip to content

Commit f49af52

Browse files
Merge pull request #1010 from Microsoft/removeUnnecessaryCode
Removing unused code.
2 parents c2efdd3 + 70948bb commit f49af52

File tree

3 files changed

+1
-782
lines changed

3 files changed

+1
-782
lines changed

src/services/compiler/ast.ts

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +0,0 @@
1-
//
2-
// Copyright (c) Microsoft Corporation. All rights reserved.
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
14-
//
15-
16-
///<reference path='references.ts' />
17-
18-
module TypeScript {
19-
export class Comment {
20-
constructor(private _trivia: ISyntaxTrivia,
21-
public endsLine: boolean,
22-
public _start: number,
23-
public _end: number) {
24-
}
25-
26-
public start(): number {
27-
return this._start;
28-
}
29-
30-
public end(): number {
31-
return this._end;
32-
}
33-
34-
public fullText(): string {
35-
return this._trivia.fullText();
36-
}
37-
38-
public kind(): SyntaxKind {
39-
return this._trivia.kind();
40-
}
41-
42-
public structuralEquals(ast: Comment, includingPosition: boolean): boolean {
43-
if (includingPosition) {
44-
if (this.start() !== ast.start() || this.end() !== ast.end()) {
45-
return false;
46-
}
47-
}
48-
49-
return this._trivia.fullText() === ast._trivia.fullText() &&
50-
this.endsLine === ast.endsLine;
51-
}
52-
}
53-
}

0 commit comments

Comments
 (0)