SelectByAllContainedExpressions Class

Definition

Class that allows to transform scopes by keeping only statements whose expressions satisfy a certain criterion. Calling Transform will build a new Scope that contains only the statements for which all contained expressions or subexpressions satisfy the condition given on initialization. Note that subexpressions will only be verified if evaluateOnSubexpressions is set to true (default value).

public class SelectByAllContainedExpressions : Microsoft.Quantum.QsCompiler.Transformations.BasicTransformations.SelectByFoldingOverExpressions
type SelectByAllContainedExpressions = class
    inherit SelectByFoldingOverExpressions
Public Class SelectByAllContainedExpressions
Inherits SelectByFoldingOverExpressions
Inheritance

Constructors

SelectByAllContainedExpressions(Func<TypedExpression,Boolean>, Boolean)

Properties

ExpressionKinds (Inherited from SyntaxTreeTransformation<T>)
Expressions (Inherited from SyntaxTreeTransformation<T>)
Namespaces (Inherited from SyntaxTreeTransformation<T>)
SharedState (Inherited from SyntaxTreeTransformation<T>)
StatementKinds (Inherited from SyntaxTreeTransformation<T>)
Statements (Inherited from SyntaxTreeTransformation<T>)
Types (Inherited from SyntaxTreeTransformation<T>)

Methods

OnAbsoluteLocation(QsNullable<QsLocation>) (Inherited from SyntaxTreeTransformation<T>)
OnArgumentTuple(QsTuple<LocalVariableDeclaration<QsLocalSymbol,ResolvedType>>) (Inherited from SyntaxTreeTransformation<T>)
OnCompilation(QsCompilation) (Inherited from SyntaxTreeTransformation<T>)
OnExpressionRange(QsNullable<Range>) (Inherited from SyntaxTreeTransformation<T>)
OnItemName(UserDefinedType, String) (Inherited from SyntaxTreeTransformation<T>)
OnItemNameDeclaration(String) (Inherited from SyntaxTreeTransformation<T>)
OnLocalName(String) (Inherited from SyntaxTreeTransformation<T>)
OnLocalNameDeclaration(String) (Inherited from SyntaxTreeTransformation<T>)
OnRelativeLocation(QsNullable<QsLocation>) (Inherited from SyntaxTreeTransformation<T>)
OnSymbolLocation(QsNullable<Position>, Range) (Inherited from SyntaxTreeTransformation<T>)
OnTypeRange(TypeRange) (Inherited from SyntaxTreeTransformation<T>)

Applies to