Files
carbon-lang/explorer/testdata/trace/context_all.carbon
T
Prabhat Sachdeva 2c4fff25a8 Explorer: add more information to stack trace (#3040)
Adds **action kind** and **source location** for stack trace.
Example:
```
(+) stack-push: <action> (<source location>)
(+) stack-pop:  <action> (<source location>)
```
This PR also updates the `Action::Print(...)` method, following is the
generalized view of `Action::Print(...)`.
```
ActionKind pos: <pos_count> `<related_code>` results: [<collected_results>]  scope: [<scope>]
```
2023-08-03 16:05:37 +00:00

23 lines
709 B
Plaintext

// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
package ExplorerTest api;
interface TestInterface {}
fn Main() -> i32 {
return 0;
}
// Place checks after code so that line numbers are stable, reducing merge
// conflicts.
// ARGS: --trace_file=- --trace_phase=all --trace_file_context=all %s
// NOAUTOUPDATE
// SET-CHECK-SUBSET
// CHECK:STDOUT: ** declaring interface As
// CHECK:STDOUT: ** declaring function Main
// CHECK:STDOUT: interface As {
// CHECK:STDOUT: fn Main ()-> i32 {
// CHECK:STDOUT: --- step ExpressionAction pos: 0 `Main()` (<Main()>:0) --->