mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-17 15:30:34 +00:00
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>] ```
23 lines
709 B
Plaintext
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) --->
|