Пример #1
0
 internal NewExpressionWithCodeAnalysis()
 {
     node       = new ExpressionNode <NewExpressionWithCodeAnalysis, ObjectCreationExpressionSyntax>(this);
     parameters = new ArgumentListWrapper <NewExpressionWithCodeAnalysis, ObjectCreationExpressionSyntax>(
         node,
         syntax => syntax.ArgumentList,
         (parentSyntax, childSyntax) => parentSyntax.WithArgumentList(childSyntax));
     type = new CachedTypeReferenceNode <NewExpressionWithCodeAnalysis, ObjectCreationExpressionSyntax>(
         node,
         syntax => syntax.Type,
         (parentSyntax, childSyntax) => parentSyntax.WithType(childSyntax));
 }
Пример #2
0
 internal ArrayIndexExpressionWithCodeAnalysis()
 {
     node  = new ExpressionNode <ArrayIndexExpressionWithCodeAnalysis, ElementAccessExpressionSyntax>(this);
     array = new CachedExpressionNode <ArrayIndexExpressionWithCodeAnalysis, ElementAccessExpressionSyntax>(
         node,
         syntax => syntax.Expression,
         (parentSyntax, childSyntax) => parentSyntax.WithExpression(childSyntax));
     indexes = new ArgumentListWrapper <ArrayIndexExpressionWithCodeAnalysis, ElementAccessExpressionSyntax>(
         node,
         syntax => syntax.ArgumentList,
         (parentSyntax, childSyntax) => parentSyntax.WithArgumentList(childSyntax));
 }
 internal MethodCallExpressionWithCodeAnalysis()
 {
     node       = new ExpressionNode <MethodCallExpressionWithCodeAnalysis, InvocationExpressionSyntax>(this);
     expression = new CachedChildNode <MethodCallExpressionWithCodeAnalysis, InvocationExpressionSyntax, IInternalGenericExpression, ExpressionSyntax>(
         node,
         ToInternalGenericExpression,
         syntax => syntax.Expression,
         (parentSyntax, childSyntax) => parentSyntax.WithExpression(childSyntax));
     parameterExpressions = new ArgumentListWrapper <MethodCallExpressionWithCodeAnalysis, InvocationExpressionSyntax>(
         node,
         syntax => syntax.ArgumentList,
         (parentSyntax, childSyntax) => parentSyntax.WithArgumentList(childSyntax));
 }