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

Function parseIntAutoRadix

packages/compiler/src/expression_parser/lexer.ts:800–806  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

798}
799
800function parseIntAutoRadix(text: string): number {
801 const result: number = parseInt(text);
802 if (isNaN(result)) {
803 throw new Error('Invalid integer literal when parsing ' + text);
804 }
805 return result;
806}

Callers 1

scanNumberMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected