MCPcopy Create free account
hub / github.com/microsoft/typescript-go / scanDigits

Method scanDigits

internal/scanner/scanner.go:2090–2100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2088}
2089
2090func (s *Scanner) scanDigits() (string, bool) {
2091 start := s.pos
2092 isOctal := true
2093 for stringutil.IsDigit(s.char()) {
2094 if !stringutil.IsOctalDigit(s.char()) {
2095 isOctal = false
2096 }
2097 s.pos++
2098 }
2099 return s.text[start:s.pos], isOctal
2100}
2101
2102func (s *Scanner) scanHexDigits(minCount int, scanAsManyAsPossible bool, canHaveSeparators bool) string {
2103 digitCount := 0

Callers 1

scanNumberMethod · 0.95

Calls 3

charMethod · 0.95
IsDigitFunction · 0.92
IsOctalDigitFunction · 0.92

Tested by

no test coverage detected