The type-checker depended on (token.Pos) position information of the presented files to determine source order. That information is determined by the parse order of the files rather than the order in which the files are presented to the type-checker. Introduced an order number strictly determined by the file order as presented to the type-checker and the AST structure of each file; thus providing source order information even in the absence of (token.Pos) position information. Added test case (provided by adonovan). LGTM=adonovan R=adonovan CC=golang-codereviews https://golang.org/cl/151160043 |
||
---|---|---|
.. | ||
buildutil | ||
callgraph | ||
exact | ||
gccgoimporter | ||
gcimporter | ||
importer | ||
loader | ||
pointer | ||
ssa | ||
types | ||
vcs |