github.com/evanw/esbuild/internal/js_lexer.Lexer.Range (method)
66 uses
github.com/evanw/esbuild/internal/js_lexer (current package)
js_lexer.go#L293: func (lexer *Lexer) Range() logger.Range {
js_lexer.go#L390: lexer.addRangeError(lexer.Range(), fmt.Sprintf("Expected %s but found %s", text, found))
js_lexer.go#L407: lexer.addRangeError(lexer.Range(), fmt.Sprintf("Unexpected %s", found))
js_lexer.go#L839: startRange := lexer.Range()
js_lexer.go#L939: lexer.addError(logger.Loc{Start: lexer.Range().End()},
js_lexer.go#L1180: lexer.log.AddRangeWarning(&lexer.source, lexer.Range(),
js_lexer.go#L1250: lexer.addRangeError(lexer.Range(), "JSON does not support comments")
js_lexer.go#L1257: startRange := lexer.Range()
js_lexer.go#L1283: lexer.addRangeError(lexer.Range(), "JSON does not support comments")
js_lexer.go#L1335: lexer.log.AddRangeWarning(&lexer.source, lexer.Range(),
js_lexer.go#L1499: lexer.addRangeError(lexer.Range(), "JSON strings must use double quotes")
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L1685: p.legacyOctalLiterals[e] = p.lexer.Range()
js_parser.go#L1720: keyRange := p.lexer.Range()
js_parser.go#L1734: p.markSyntaxFeature(compat.BigInt, p.lexer.Range())
js_parser.go#L1746: p.markSyntaxFeature(compat.ObjectExtensions, p.lexer.Range())
js_parser.go#L1781: nameRange := p.lexer.Range()
js_parser.go#L1852: errors.invalidExprDefaultValue = p.lexer.Range()
js_parser.go#L1935: p.markSyntaxFeature(compat.ObjectExtensions, p.lexer.Range())
js_parser.go#L2092: p.markSyntaxFeature(compat.BigInt, p.lexer.Range())
js_parser.go#L2152: p.log.AddRangeError(&p.source, p.lexer.Range(), "Unexpected newline before \"=>\"")
js_parser.go#L2246: p.markSyntaxFeature(compat.Generator, p.lexer.Range())
js_parser.go#L2319: spreadRange = p.lexer.Range()
js_parser.go#L2336: typeColonRange = p.lexer.Range()
js_parser.go#L2621: superRange := p.lexer.Range()
js_parser.go#L2675: nameRange := p.lexer.Range()
js_parser.go#L2808: p.markSyntaxFeature(compat.BigInt, p.lexer.Range())
js_parser.go#L2893: classKeyword := p.lexer.Range()
js_parser.go#L2925: r := logger.Range{Loc: loc, Len: p.lexer.Range().End() - loc.Start}
js_parser.go#L2970: errors.arraySpreadFeature = p.lexer.Range()
js_parser.go#L2972: p.markSyntaxFeature(compat.ArraySpread, p.lexer.Range())
js_parser.go#L3245: r := p.lexer.Range()
js_parser.go#L3465: p.log.AddRangeError(&p.source, p.lexer.Range(), "Template literals cannot have an optional chain as a tag")
js_parser.go#L3467: p.markSyntaxFeature(compat.TemplateLiteral, p.lexer.Range())
js_parser.go#L3476: p.log.AddRangeError(&p.source, p.lexer.Range(), "Template literals cannot have an optional chain as a tag")
js_parser.go#L3478: p.markSyntaxFeature(compat.TemplateLiteral, p.lexer.Range())
js_parser.go#L3542: errors.invalidExprAfterQuestion = p.lexer.Range()
js_parser.go#L3968: letRange := p.lexer.Range()
js_parser.go#L4010: p.markSyntaxFeature(compat.RestArgument, p.lexer.Range())
js_parser.go#L4039: tagRange := p.lexer.Range()
js_parser.go#L4053: memberRange := p.lexer.Range()
js_parser.go#L4097: keyRange := p.lexer.Range()
js_parser.go#L4253: p.log.AddRangeError(&p.source, p.lexer.Range(), "Cannot use \"let\" as an identifier here")
js_parser.go#L4469: p.log.AddRangeError(&p.source, p.lexer.Range(), fmt.Sprintf("Cannot use %q as an identifier here", name))
js_parser.go#L4476: p.markSyntaxFeature(compat.Destructuring, p.lexer.Range())
js_parser.go#L4497: p.markSyntaxFeature(compat.NestedRestBinding, p.lexer.Range())
js_parser.go#L4514: p.log.AddRangeError(&p.source, p.lexer.Range(), "Unexpected \",\" after rest pattern")
js_parser.go#L4544: p.markSyntaxFeature(compat.Destructuring, p.lexer.Range())
js_parser.go#L4559: p.log.AddRangeError(&p.source, p.lexer.Range(), "Unexpected \",\" after rest pattern")
js_parser.go#L4633: p.markSyntaxFeature(compat.RestArgument, p.lexer.Range())
js_parser.go#L4681: p.markSyntaxFeature(compat.DefaultArgument, p.lexer.Range())
js_parser.go#L4743: classKeyword := p.lexer.Range()
js_parser.go#L4919: p.markSyntaxFeature(compat.Generator, p.lexer.Range())
js_parser.go#L5046: p.es6ExportKeyword = p.lexer.Range()
js_parser.go#L5103: asyncRange := p.lexer.Range()
js_parser.go#L5118: typeRange := p.lexer.Range()
js_parser.go#L5170: asyncRange := p.lexer.Range()
js_parser.go#L5411: p.markSyntaxFeature(compat.Const, p.lexer.Range())
js_parser.go#L5502: p.log.AddRangeError(&p.source, p.lexer.Range(), "Multiple default clauses are not allowed")
js_parser.go#L5617: awaitRange := p.lexer.Range()
js_parser.go#L5642: badLetRange = p.lexer.Range()
js_parser.go#L5655: p.markSyntaxFeature(compat.Const, p.lexer.Range())
js_parser.go#L5690: p.markSyntaxFeature(compat.ForOf, p.lexer.Range())
js_parser.go#L5735: p.es6ImportKeyword = p.lexer.Range()
js_parser.go#L5975: asyncRange := p.lexer.Range()
json_parser.go#L19: commaRange := p.lexer.Range()
json_parser.go#L115: keyRange := p.lexer.Range()
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |