Skip to content

Commit

Permalink
feat(compiler): add ResolvableVariableSnapshot for variable tracking #…
Browse files Browse the repository at this point in the history
…178

Introduce ResolvableVariableSnapshot to store variable change flow during compilation. Includes a manager class for handling snapshots.
  • Loading branch information
phodal committed Jan 5, 2025
1 parent 34ed479 commit 22131dd
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.phodal.shirelang.compiler.template

import com.intellij.openapi.util.UserDataHolderBase

/**
* Variable Snapshot will store all change flow of a variable. For example:
* ```shire
* ---
* variables:
* "controllers": /.*.java/ { cat | grep("class\s+([a-zA-Z]*Controller)") }
* ---
* ```
*
* The variable snapshot should store:
*
* - the value after cat function
* - the value after grep function
*/
class ResolvableVariableSnapshot(
val variableName: String,
) : UserDataHolderBase() {

}


class ResolvableVariableSnapshotManager {

}

0 comments on commit 22131dd

Please sign in to comment.