Skip to main content
Module

x/ts_morph/ts_morph.d.ts>LanguageService#getIdentationAtPosition

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method LanguageService.prototype.getIdentationAtPosition
import { LanguageService } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Gets the indentation at the specified position.

Parameters

sourceFile: SourceFile
  • Source file.
position: number
  • Position.
optional
settings: EditorSettings
  • Editor settings.

Returns

number

Gets the indentation at the specified position.

Parameters

filePath: string
  • File path.
position: number
  • Position.
optional
settings: EditorSettings
  • Editor settings.

Returns

number