public AssertThatWalker(SemanticModel semanticModel)
 {
     _semanticModel     = semanticModel ?? throw new ArgumentNullException(nameof(semanticModel));
     _assertThatContext = new SyntaxWalkContext <AssertThatData>();
 }
示例#2
0
 public ConstraintWalker()
 {
     _constratintContext = new SyntaxWalkContext <ConstraintData>();
 }
 public MethodDeclarationWalker(SemanticModel semanticModel)
 {
     _semanticModel            = semanticModel ?? throw new ArgumentNullException(nameof(semanticModel));
     _methodDeclarationContext = new SyntaxWalkContext <MethodDeclarationData>();
 }
示例#4
0
 public ClassDeclarationWalker(SemanticModel semanticModel, Document originalDocument)
 {
     _semanticModel           = semanticModel ?? throw new ArgumentNullException(nameof(semanticModel));
     _originalDocument        = originalDocument ?? throw new ArgumentNullException(nameof(originalDocument));
     _classDeclarationContext = new SyntaxWalkContext <ClassDeclarationData>();
 }