go/src/cmd/compile/internal/syntax
Robert Griesemer 6b18081d01 [dev.typeparams] cmd/compile/internal/types2: don't crash if import path is missing
In package syntax:
- fix parser appendGroup to not add nil entries
- non-string paths are syntax errors per the spec; report in parser
- document ImportDecl.Path invariants

In package types2:
- guard against absent paths

In package gc:
- guard against absent paths

Fixes #43190.

Change-Id: Ic6a06f6a96b7f519feaa1ceaf4376fc5ab0f0129
Reviewed-on: https://go-review.googlesource.com/c/go/+/278114
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-12-15 19:44:38 +00:00
..
testdata [dev.typeparams] cmd/compile/internal/syntax: add type parameter tests 2020-10-13 04:39:31 +00:00
branches.go cmd/compile: fix label redefinition error column numbers 2018-10-16 22:32:14 +00:00
dumper.go cmd/compile/internal/syntax: print position info for names in tree dump 2017-03-06 23:45:14 +00:00
dumper_test.go [dev.regabi] cmd/compile: remove uses of dummy 2020-11-25 04:35:29 +00:00
error_test.go cmd/compile/internal/syntax: implement regression test harness for syntax errors 2018-02-12 22:58:06 +00:00
nodes.go [dev.typeparams] cmd/compile/internal/types2: don't crash if import path is missing 2020-12-15 19:44:38 +00:00
nodes_test.go cmd/compile/internal/syntax: remove dependency on cmd/internal/src 2018-02-26 18:27:15 +00:00
operator_string.go cmd/compile/internal/syntax: use stringer for operators and tokens 2018-02-24 00:20:46 +00:00
parser.go [dev.typeparams] cmd/compile/internal/types2: don't crash if import path is missing 2020-12-15 19:44:38 +00:00
parser_test.go [dev.typeparams] cmd/compile/internal/syntax: always use IndexExpr node for type instantiation 2020-10-14 21:37:37 +00:00
pos.go [dev.typeparams] cmd/compile/internal/syntax: add Pos method 2020-10-19 23:19:16 +00:00
printer.go [dev.typeparams] cmd/compile/internal/syntax: fix printing of channel types 2020-10-15 18:51:03 +00:00
printer_test.go [dev.typeparams] merge dev.regabi 41f3af9d04 into dev.typeparams 2020-11-25 13:15:41 -05:00
scanner.go cmd/compile: detect and diagnose invalid //go: directive placement 2020-04-21 16:47:01 +00:00
scanner_test.go cmd/compile/internal/syntax: various cleanups following CL 221603 2020-03-11 19:59:39 +00:00
source.go cmd/compile/internal/syntax: faster and simpler source reader 2020-03-05 19:25:46 +00:00
syntax.go [dev.typeparams] cmd/compile/internal/syntax: implement parsing of type parameters 2020-10-13 04:38:33 +00:00
testing.go [dev.typeparams] cmd/compile/internal/syntax: add utility functions for testing 2020-10-20 00:18:18 +00:00
testing_test.go [dev.typeparams] cmd/compile/internal/syntax: add utility functions for testing 2020-10-20 00:18:18 +00:00
token_string.go cmd/compile/internal/syntax: use stringer for operators and tokens 2018-02-24 00:20:46 +00:00
tokens.go cmd/compile/internal/syntax: add BasicLit.Bad field for lexical errors 2019-08-29 23:37:01 +00:00