This commit is contained in:
Alex Dima
2016-02-16 16:04:14 +01:00
parent f3b4865401
commit 45ddf92f27
2 changed files with 10 additions and 12 deletions
@@ -6,11 +6,9 @@
import nls = require('vs/nls');
import URI from 'vs/base/common/uri';
import strings = require('vs/base/common/strings');
import EditorCommon = require('vs/editor/common/editorCommon');
import Modes = require('vs/editor/common/modes');
import winjs = require('vs/base/common/winjs.base');
import paths = require('vs/base/common/paths');
import http = require('vs/base/common/http');
import {IFileService} from 'vs/platform/files/common/files';
import {IRequestService} from 'vs/platform/request/common/request';
@@ -72,16 +72,16 @@ export class EmptyBlocksWithoutComment implements rules.IStyleRule<ts.Block> {
context.reportError(node, this.name, this.code);
}
private _hasComment(block: ts.Node): boolean {
var insideBlock = block.getChildAt(1);
if (insideBlock) {
var text = ts.getTextOfNode(insideBlock);
if (text && text.trim().length > 0) {
return true;
}
}
// private _hasComment(block: ts.Node): boolean {
// var insideBlock = block.getChildAt(1);
// if (insideBlock) {
// var text = ts.getTextOfNode(insideBlock);
// if (text && text.trim().length > 0) {
// return true;
// }
// }
return false;
}
// return false;
// }
}