TrimSyntaxTree 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.
Removes unused callables from the syntax tree.
public static class TrimSyntaxTree
type TrimSyntaxTree = class
Public Class TrimSyntaxTree
- Inheritance
-
TrimSyntaxTree
Methods
| Apply(QsCompilation, Boolean, IEnumerable<QsQualifiedName>) |
Applies the transformation that removes from the syntax tree all callables that are unused, meaning they are not a descendant of at least one entry point in the call graph. If keepAllIntrinsics is true, callables with an intrinsic body will not be trimmed, regardless of usage. Any callables that later transformations will depend on should be passed in and will not be trimmed, regardless of usage. Note that unused type constructors will be subject to trimming as any other callable. |