-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Update to Go 1.27 #63902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update to Go 1.27 #63902
Changes from all commits
7ea9ee1
14d1881
e6a7493
b284052
5e6544f
c5c9a0b
c7b7f0f
1287f18
bf6a7d0
889b461
68192a4
e001846
ac2e103
4b72e06
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,7 +38,7 @@ | |
| "trailingCommas": "never" | ||
| }, | ||
| "gofumpt": { | ||
| "langVersion": "go1.26", | ||
| "langVersion": "go1.27", | ||
| "modulePath": "github.com/microsoft/TypeScript/tsc" | ||
| }, | ||
| "excludes": [ | ||
|
|
@@ -66,6 +66,6 @@ | |
| "npm:@dprint/typescript@0.96.1", | ||
| "npm:@dprint/json@0.22.0", | ||
| "npm:dprint-plugin-yaml@0.6.0", | ||
| "npm:@jakebailey/dprint-plugin-gofumpt@0.0.13" | ||
| "npm:@jakebailey/dprint-plugin-gofumpt@0.0.16" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is new as of a couple of days ago, but, we are not correctly pinning them in package.json so I need to wait and move these in later to satisfy the firewall |
||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| go 1.26 | ||
| go 1.27 | ||
|
|
||
| use ( | ||
| ./tools | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| module testdata | ||
|
|
||
| go 1.26 | ||
| go 1.27 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2414,15 +2414,15 @@ func NewSourceFileDataKey[T any]() *SourceFileDataKey[T] { | |
| return &SourceFileDataKey[T]{key: sourceFileDataKey(sourceFileDataKeyCounter.Add(1))} | ||
| } | ||
|
|
||
| func GetOrComputeSourceFileData[T any](file *SourceFile, key *SourceFileDataKey[T], compute func(*SourceFile) T) T { | ||
| cell := getSourceFileDataCell(file, key) | ||
| func (file *SourceFile) GetOrComputeData[T any](key *SourceFileDataKey[T], compute func(*SourceFile) T) T { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I took the time to add generic methods everywhere we previously wished we had them. |
||
| cell := file.getDataCell(key) | ||
| cell.once.Do(func() { | ||
| cell.value = compute(file) | ||
| }) | ||
| return cell.value | ||
| } | ||
|
|
||
| func getSourceFileDataCell[T any](file *SourceFile, key *SourceFileDataKey[T]) *sourceFileDataCell[T] { | ||
| func (file *SourceFile) getDataCell[T any](key *SourceFileDataKey[T]) *sourceFileDataCell[T] { | ||
| if key == nil || key.key == 0 { | ||
| panic("invalid SourceFileDataKey; use NewSourceFileDataKey") | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.