Ejemplo n.º 1
0
 internal ExtensionMethodWithCodeAnalysis()
 {
     method             = new MethodWithBodyWithCodeAnalysis();
     extensionParameter = new ExtensionParameterWithCodeAnalysis();
     parameters         = new FilteredList <MethodParameterWithCodeAnalysis, MethodParameterWithCodeAnalysis>(
         method.Parameters,
         parameter => !parameter.Syntax.Modifiers.Any(SyntaxKind.ThisKeyword));
 }
 internal ExplicitInterfaceMethodWithCodeAnalysis()
 {
     method            = new MethodWithBodyWithCodeAnalysis();
     explicitInterface = new CachedChildNode <MethodWithCodeAnalysis, MethodDeclarationSyntax, InterfaceReferenceWithCodeAnalysis, NameSyntax>(
         method.Method.Node,
         () => new InterfaceReferenceWithCodeAnalysis(new UnspecifiedTypeReferenceWithCodeAnalysis()),
         syntax => syntax.ExplicitInterfaceSpecifier.Name,
         (parentSyntax, childSyntax) => parentSyntax.WithExplicitInterfaceSpecifier(parentSyntax.ExplicitInterfaceSpecifier.WithName(childSyntax)));
 }
Ejemplo n.º 3
0
 internal ClassMethodWithCodeAnalysis()
 {
     method = new MethodWithBodyWithCodeAnalysis();
 }
Ejemplo n.º 4
0
 internal NestedStaticClassMethodWithCodeAnalysis()
 {
     method = new MethodWithBodyWithCodeAnalysis();
 }
 internal StructMethodWithCodeAnalysis()
 {
     method = new MethodWithBodyWithCodeAnalysis();
 }