Microsoft.Quantum.QsCompiler.Transformations.SearchAndReplace Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Accumulate |
Generates a look-up for all used local variables and their location (if available) in any of the transformed scopes, as well as one for all local variables reassigned in any of the transformed scopes and their locations (if available). |
Accumulate |
|
Identifier |
Class that allows to walk the syntax tree and find all locations where a certain identifier occurs. If a set of source file names is given on initialization, the search is limited to callables and specializations in those files. |
Identifier |
|
Identifier |
Class used to track the internal state for a transformation that finds all locations where a certain identifier occurs. If no source file is specified prior to transformation, its name is set to the empty string. The DeclarationOffset needs to be set prior to transformation, and in particular after defining a source file. If no defaultOffset is specified upon initialization then only the locations of occurrences within statements are logged. |
Name |
Provides simple name decoration (or name mangling) by prefixing names with a label and number. |
Rename |
A transformation that renames all references to each given qualified name. |
Unique |
Upon transformation, assigns each defined variable a unique name, independent on the scope, and replaces all references to it accordingly. The original variable name can be recovered by using the static method StripUniqueName. This class is not threadsafe. |
Unique |