FilterBySourceFile Class
Definition
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.
Calling Transform on a syntax tree returns a new tree that only contains the type and callable declarations that are defined in the source file with the identifier given upon initialization. The transformation also ensures that the elements in each namespace are ordered according to the location at which they are defined in the file. Auto-generated declarations will be ordered alphabetically.
public class FilterBySourceFile : Microsoft.Quantum.QsCompiler.Transformations.Core.SyntaxTreeTransformation<Microsoft.Quantum.QsCompiler.Transformations.BasicTransformations.FilterBySourceFile.TransformationState>
type FilterBySourceFile = class
inherit SyntaxTreeTransformation<FilterBySourceFile.TransformationState>
Public Class FilterBySourceFile
Inherits SyntaxTreeTransformation(Of FilterBySourceFile.TransformationState)
- Inheritance
Constructors
| FilterBySourceFile(Func<String,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
| Apply(QsNamespace, Func<String,Boolean>) | |
| Apply(QsNamespace, String[]) | |
| 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>) |