Skip to content

remove ast.DefaultScan, dag.DefaultScan, and sem.DefaultScan#7041

Merged
nwt merged 3 commits into
mainfrom
remove-DefaultScan
Jun 8, 2026
Merged

remove ast.DefaultScan, dag.DefaultScan, and sem.DefaultScan#7041
nwt merged 3 commits into
mainfrom
remove-DefaultScan

Conversation

@nwt

@nwt nwt commented Jun 6, 2026

Copy link
Copy Markdown
Member

They're unneeded since ast.DefaultScan is no longer used.

Depends on #7040.

nwt added 2 commits June 5, 2026 22:36
When its extInput parameter is true, compiler/semantic.Analyze prepends
an ast.DefaultScan to the AST.  Change it to prepend an ast.FileScan for
standard input instead.

To allow that FileScan to access sio.Readers passed to
compiler.CompileWithAST, add a new runtime/exec.Environment.Stdin field,
set the field in CompileWithAST if the length of the readers paramter is
nonzero, and return a scanner for it in Environment.Open if the field is
set when opening standard input.
They're unneeded since ast.DefaultScan is no longer used.
@nwt nwt requested a review from a team June 6, 2026 02:47
Base automatically changed from FileScan-instead-of-DeafultScan to main June 8, 2026 12:29
@nwt nwt merged commit 7110019 into main Jun 8, 2026
2 checks passed
@nwt nwt deleted the remove-DefaultScan branch June 8, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants