提交 45ddf92f 编写于 作者: A Alex Dima

tslint

上级 f3b48654
......@@ -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;
}
}
return false;
}
// 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;
// }
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册