How to use the getLineAndCharacterOfPosition function from typescript
Find comprehensive JavaScript typescript.getLineAndCharacterOfPosition code examples handpicked from public code repositorys.
197 198 199 200 201 202 203 204 205 206
else if (this.options.case === 2 /* Upper */ && !utils_1.isUpperCase(status.text[charPos])) { status.uppercaseError = true; if (this.options.allowTrailingLowercase && this.prevComment !== undefined && this.prevCommentIsValid) { var currentComment = ts.getLineAndCharacterOfPosition(this.sourceFile, pos); if (this.prevComment.line + 1 === currentComment.line && this.prevComment.character === currentComment.character) { status.uppercaseError = false; }
0
0
1
202 203 204 205 206 207 208 209 210 211
.map(function (method) { return method.name.getText(); }) .filter(exports.isAngularLifecycleMethod); }; exports.kebabToCamelCase = function (value) { return value.replace(/-[a-zA-Z]/g, function (x) { return x[1].toUpperCase(); }); }; exports.isSameLine = function (sourceFile, pos1, pos2) { return typescript_1.getLineAndCharacterOfPosition(sourceFile, pos1).line === typescript_1.getLineAndCharacterOfPosition(sourceFile, pos2).line; }; exports.isBooleanLiteralLike = function (node) { return node.kind === typescript_1.SyntaxKind.FalseKeyword || node.kind === typescript_1.SyntaxKind.TrueKeyword; };
0
0
1
typescript.SyntaxKind is the most popular function in typescript (82777 examples)