Create() public static méthode

Factory method for class ConstructorASTWalker.
public static Create ( CSharpSyntaxNode node, ASTWalkerContext context = null, Microsoft.CodeAnalysis.SemanticModel semanticModel = null ) : ConstructorASTWalker
node CSharpSyntaxNode Used to initialize the walker.
context ASTWalkerContext The walking context.
semanticModel Microsoft.CodeAnalysis.SemanticModel The semantic model.
Résultat ConstructorASTWalker
Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="node"></param>
        public override void VisitConstructorDeclaration(ConstructorDeclarationSyntax node)
        {
            var constructorWalker = ConstructorASTWalker.Create(node, this.CreateWalkingContext(), this.semanticModel);
            var translationUnit   = constructorWalker.Walk();

            this.classDeclaration.AddConstructorDeclaration(translationUnit);

            this.InvokeConstructorDeclarationVisited(this, new WalkerEventArgs());
        }