Merge pull request #502 from DickvdBrink/unused-var-parser
Remove some unused variables
This commit is contained in:
commit
5dc017b023
|
@ -1470,7 +1470,7 @@ module ts {
|
|||
function getTypeOfFuncClassEnumModule(symbol: Symbol): Type {
|
||||
var links = getSymbolLinks(symbol);
|
||||
if (!links.type) {
|
||||
var type = links.type = createObjectType(TypeFlags.Anonymous, symbol);
|
||||
links.type = createObjectType(TypeFlags.Anonymous, symbol);
|
||||
}
|
||||
return links.type;
|
||||
}
|
||||
|
|
|
@ -2405,8 +2405,6 @@ module ts {
|
|||
function parseBreakOrContinueStatement(kind: SyntaxKind): BreakOrContinueStatement {
|
||||
var node = <BreakOrContinueStatement>createNode(kind);
|
||||
var errorCountBeforeStatement = file.syntacticErrors.length;
|
||||
var keywordStart = scanner.getTokenPos();
|
||||
var keywordLength = scanner.getTextPos() - keywordStart;
|
||||
parseExpected(kind === SyntaxKind.BreakStatement ? SyntaxKind.BreakKeyword : SyntaxKind.ContinueKeyword);
|
||||
if (!canParseSemicolon()) node.label = parseIdentifier();
|
||||
parseSemicolon();
|
||||
|
|
Loading…
Reference in a new issue