MCPcopy Create free account
hub / github.com/angular/angular / isInSpan

Function isInSpan

packages/language-service/src/inlay_hints.ts:241–243  ·  view source on GitHub ↗
(pos: number)

Source from the content-addressed store, hash-verified

239
240 // Helper to check if a position is within our requested span
241 const isInSpan = (pos: number): boolean => {
242 return pos >= span.start && pos < span.start + span.length;
243 };
244
245 // Helper to format type string (remove unnecessary verbosity)
246 const formatType = (type: ts.Type): string => {

Callers 11

visitForLoopBlockMethod · 0.85
visitIfBlockBranchMethod · 0.85
visitBoundEventMethod · 0.85
visitVariableMethod · 0.85
visitLetDeclarationMethod · 0.85
visitReferenceMethod · 0.85
visitBoundAttributeMethod · 0.85
visitTextAttributeMethod · 0.85
visitSwitchBlockMethod · 0.85
visitDeferredBlockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected