Index

Constructor methods

Properties

Methods

Constructor methods

constructor(snapshot: ITextSnapshot, formattingRequestKind: FormattingRequestKind): FormattingContext

Parameters

Returns

FormattingContext

Properties

public contextNode: IndentationNodeContext

private contextNodeAllOnSameLine: any

private contextNodeBlockIsOnOneLine: any

public currentTokenParent: IndentationNodeContext

public currentTokenSpan: TokenSpan

public formattingRequestKind: FormattingRequestKind

private nextNodeAllOnSameLine: any

private nextNodeBlockIsOnOneLine: any

public nextTokenParent: IndentationNodeContext

public nextTokenSpan: TokenSpan

private snapshot: any

private tokensAreOnSameLine: any

Methods

public BlockIsOnOneLine(node: IndentationNodeContext): boolean

Parameters

Returns

boolean

public ContextNodeAllOnSameLine(): boolean

Returns

boolean

public ContextNodeBlockIsOnOneLine(): boolean

Returns

boolean

public NextNodeAllOnSameLine(): boolean

Returns

boolean

public NextNodeBlockIsOnOneLine(): boolean

Returns

boolean

public NodeIsOnOneLine(node: IndentationNodeContext): boolean

Parameters

Returns

boolean

public TokensAreOnSameLine(): boolean

Returns

boolean

public updateContext(currentTokenSpan: TokenSpan, currentTokenParent: IndentationNodeContext, nextTokenSpan: TokenSpan, nextTokenParent: IndentationNodeContext, commonParent: IndentationNodeContext)

Parameters