Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–5 unchanged (5 lines)
6
7// This file contains predicates for working with file versions to
8// decide when a tool should consider a language feature enabled.
9
10// named constants, to avoid misspelling
11const (
12 Go1_18 = "go1.18"
13 Go1_19 = "go1.19"
14 Go1_20 = "go1.20"
15 Go1_21 = "go1.21"
16 Go1_22 = "go1.22"
17 Go1_23 = "go1.23"
18 Go1_24 = "go1.24"
…lines 19–48 unchanged (30 lines)

After

…lines 1–5 unchanged (5 lines)
6
7// This file contains predicates for working with file versions to
8// decide when a tool should consider a language feature enabled.
9
10// named constants, to avoid misspelling
11const (
12 Go1_17 = "go1.17"
13 Go1_18 = "go1.18"
14 Go1_19 = "go1.19"
15 Go1_20 = "go1.20"
16 Go1_21 = "go1.21"
17 Go1_22 = "go1.22"
18 Go1_23 = "go1.23"
…lines 19–49 unchanged (31 lines)

Before

source_file
comment "// Copyright 2023 The Go Authors. All rights reserved."
comment "// Use of this source code is governed by a BSD-style"
comment "// license that can be found in the LICENSE file."
package_clause
package "package"
package_identifier "versions"
comment "// This file contains predicates for working with file versi"...
comment "// decide when a tool should consider a language feature ena"...
comment "// named constants, to avoid misspelling"
const_declaration
const "const"
( "("
const_spec
identifier "Go1_18"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.18"
" "\""
const_spec
identifier "Go1_19"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.19"
" "\""
const_spec
identifier "Go1_20"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.20"
" "\""
const_spec
identifier "Go1_21"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.21"
" "\""
const_spec
identifier "Go1_22"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.22"
" "\""
const_spec
identifier "Go1_23"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.23"
" "\""
const_spec
identifier "Go1_24"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.24"
" "\""
const_spec
identifier "Go1_25"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.25"
" "\""
const_spec
identifier "Go1_26"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.26"
" "\""
) ")"
comment "// Future is an invalid unknown Go version sometime in the f"...
comment "// Do not use directly with Compare."
const_declaration
const "const"
const_spec
identifier "Future"
= "="
expression_list
interpreted_string_literal
" "\""
" "\""
comment "// AtLeast reports whether the file version v comes after a "...
comment "//"
comment "// Use this predicate to enable a behavior once a certain Go"...
comment "// has happened (and stays enabled in the future)."
function_declaration (+55 nodes collapsed)
comment "// Before reports whether the file version v is strictly bef"...
comment "//"
comment "// Use this predicate to disable a behavior once a certain G"...
comment "// has happened (and stays enabled in the future)."
function_declaration (+55 nodes collapsed)

After

source_file
comment "// Copyright 2023 The Go Authors. All rights reserved."
comment "// Use of this source code is governed by a BSD-style"
comment "// license that can be found in the LICENSE file."
package_clause
package "package"
package_identifier "versions"
comment "// This file contains predicates for working with file versi"...
comment "// decide when a tool should consider a language feature ena"...
comment "// named constants, to avoid misspelling"
const_declaration
const "const"
( "("
const_spec
identifier "Go1_17"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.17"
" "\""
const_spec
identifier "Go1_18"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.18"
" "\""
const_spec
identifier "Go1_19"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.19"
" "\""
const_spec
identifier "Go1_20"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.20"
" "\""
const_spec
identifier "Go1_21"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.21"
" "\""
const_spec
identifier "Go1_22"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.22"
" "\""
const_spec
identifier "Go1_23"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.23"
" "\""
const_spec
identifier "Go1_24"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.24"
" "\""
const_spec
identifier "Go1_25"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.25"
" "\""
const_spec
identifier "Go1_26"
= "="
expression_list
interpreted_string_literal
" "\""
interpreted_string_literal_content "go1.26"
" "\""
) ")"
comment "// Future is an invalid unknown Go version sometime in the f"...
comment "// Do not use directly with Compare."
const_declaration
const "const"
const_spec
identifier "Future"
= "="
expression_list
interpreted_string_literal
" "\""
" "\""
comment "// AtLeast reports whether the file version v comes after a "...
comment "//"
comment "// Use this predicate to enable a behavior once a certain Go"...
comment "// has happened (and stays enabled in the future)."
function_declaration (+55 nodes collapsed)
comment "// Before reports whether the file version v is strictly bef"...
comment "//"
comment "// Use this predicate to disable a behavior once a certain G"...
comment "// has happened (and stays enabled in the future)."
function_declaration (+55 nodes collapsed)