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)