コード例 #1
0
 static ILocalFunctionOperationWrapper()
 {
     WrappedType         = OperationWrapperHelper.GetWrappedType(typeof(ILocalFunctionOperationWrapper));
     SymbolAccessor      = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IMethodSymbol>(WrappedType, nameof(Symbol));
     BodyAccessor        = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Body));
     IgnoredBodyAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(IgnoredBody));
 }
コード例 #2
0
 static ICollectionElementInitializerOperationWrapper()
 {
     WrappedType       = OperationWrapperHelper.GetWrappedType(typeof(ICollectionElementInitializerOperationWrapper));
     AddMethodAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IMethodSymbol>(WrappedType, nameof(AddMethod));
     ArgumentsAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ImmutableArray <IOperation> >(WrappedType, nameof(Arguments));
     IsDynamicAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsDynamic));
 }
コード例 #3
0
 static IWithOperationWrapper()
 {
     WrappedType         = OperationWrapperHelper.GetWrappedType(typeof(IWithOperationWrapper));
     OperandAccessor     = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Operand));
     CloneMethodAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IMethodSymbol>(WrappedType, nameof(CloneMethod));
     InitializerAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Initializer));
 }
コード例 #4
0
 static IIsTypeOperationWrapper()
 {
     WrappedType          = OperationWrapperHelper.GetWrappedType(typeof(IIsTypeOperationWrapper));
     ValueOperandAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(ValueOperand));
     TypeOperandAccessor  = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ITypeSymbol>(WrappedType, nameof(TypeOperand));
     IsNegatedAccessor    = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsNegated));
 }
コード例 #5
0
 static IObjectCreationOperationWrapper()
 {
     WrappedType         = OperationWrapperHelper.GetWrappedType(typeof(IObjectCreationOperationWrapper));
     ConstructorAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IMethodSymbol>(WrappedType, nameof(Constructor));
     InitializerAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Initializer));
     ArgumentsAccessor   = LightupHelpers.CreateOperationListPropertyAccessor <IOperation>(WrappedType, nameof(Arguments));
 }
コード例 #6
0
 static IVariableDeclaratorOperationWrapper()
 {
     WrappedType              = OperationWrapperHelper.GetWrappedType(typeof(IVariableDeclaratorOperationWrapper));
     SymbolAccessor           = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ILocalSymbol>(WrappedType, nameof(Symbol));
     InitializerAccessor      = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Initializer));
     IgnoredArgumentsAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ImmutableArray <IOperation> >(WrappedType, nameof(IgnoredArguments));
 }
 static IPatternCaseClauseOperationWrapper()
 {
     WrappedType     = OperationWrapperHelper.GetWrappedType(typeof(IPatternCaseClauseOperationWrapper));
     LabelAccessor   = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ILabelSymbol>(WrappedType, nameof(Label));
     PatternAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Pattern));
     GuardAccessor   = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Guard));
 }
コード例 #8
0
 static ICompoundAssignmentOperationWrapper()
 {
     WrappedType            = OperationWrapperHelper.GetWrappedType(typeof(ICompoundAssignmentOperationWrapper));
     IsLiftedAccessor       = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsLifted));
     IsCheckedAccessor      = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsChecked));
     OperatorMethodAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IMethodSymbol>(WrappedType, nameof(OperatorMethod));
 }
コード例 #9
0
 static IInterpolationOperationWrapper()
 {
     WrappedType          = OperationWrapperHelper.GetWrappedType(typeof(IInterpolationOperationWrapper));
     ExpressionAccessor   = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Expression));
     AlignmentAccessor    = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Alignment));
     FormatStringAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(FormatString));
 }
 static IVariableDeclarationOperationWrapper()
 {
     WrappedType               = OperationWrapperHelper.GetWrappedType(typeof(IVariableDeclarationOperationWrapper));
     DeclaratorsAccessor       = LightupHelpers.CreateOperationListPropertyAccessor <IOperation>(WrappedType, nameof(Declarators));
     InitializerAccessor       = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Initializer));
     IgnoredDimensionsAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ImmutableArray <IOperation> >(WrappedType, nameof(IgnoredDimensions));
 }
コード例 #11
0
 static IDeclarationPatternOperationWrapper()
 {
     WrappedType            = OperationWrapperHelper.GetWrappedType(typeof(IDeclarationPatternOperationWrapper));
     MatchedTypeAccessor    = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ITypeSymbol>(WrappedType, nameof(MatchedType));
     MatchesNullAccessor    = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(MatchesNull));
     DeclaredSymbolAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ISymbol>(WrappedType, nameof(DeclaredSymbol));
 }
コード例 #12
0
 static IEventAssignmentOperationWrapper()
 {
     WrappedType            = OperationWrapperHelper.GetWrappedType(typeof(IEventAssignmentOperationWrapper));
     EventReferenceAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(EventReference));
     HandlerValueAccessor   = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(HandlerValue));
     AddsAccessor           = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(Adds));
 }
コード例 #13
0
 static ISwitchCaseOperationWrapper()
 {
     WrappedType     = OperationWrapperHelper.GetWrappedType(typeof(ISwitchCaseOperationWrapper));
     ClausesAccessor = LightupHelpers.CreateOperationListPropertyAccessor <IOperation>(WrappedType, nameof(Clauses));
     BodyAccessor    = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ImmutableArray <IOperation> >(WrappedType, nameof(Body));
     LocalsAccessor  = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ImmutableArray <ILocalSymbol> >(WrappedType, nameof(Locals));
 }
コード例 #14
0
 static IForEachLoopOperationWrapper()
 {
     WrappedType = OperationWrapperHelper.GetWrappedType(typeof(IForEachLoopOperationWrapper));
     LoopControlVariableAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(LoopControlVariable));
     CollectionAccessor          = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Collection));
     NextVariablesAccessor       = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ImmutableArray <IOperation> >(WrappedType, nameof(NextVariables));
     IsAsynchronousAccessor      = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsAsynchronous));
 }
コード例 #15
0
 static IDynamicMemberReferenceOperationWrapper()
 {
     WrappedType            = OperationWrapperHelper.GetWrappedType(typeof(IDynamicMemberReferenceOperationWrapper));
     InstanceAccessor       = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Instance));
     MemberNameAccessor     = LightupHelpers.CreateOperationPropertyAccessor <IOperation, string>(WrappedType, nameof(MemberName));
     TypeArgumentsAccessor  = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ImmutableArray <ITypeSymbol> >(WrappedType, nameof(TypeArguments));
     ContainingTypeAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ITypeSymbol>(WrappedType, nameof(ContainingType));
 }
コード例 #16
0
 static ISwitchOperationWrapper()
 {
     WrappedType       = OperationWrapperHelper.GetWrappedType(typeof(ISwitchOperationWrapper));
     LocalsAccessor    = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ImmutableArray <ILocalSymbol> >(WrappedType, nameof(Locals));
     ValueAccessor     = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Value));
     CasesAccessor     = LightupHelpers.CreateOperationListPropertyAccessor <IOperation>(WrappedType, nameof(Cases));
     ExitLabelAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ILabelSymbol>(WrappedType, nameof(ExitLabel));
 }
コード例 #17
0
 static IInvocationOperationWrapper()
 {
     WrappedType          = OperationWrapperHelper.GetWrappedType(typeof(IInvocationOperationWrapper));
     TargetMethodAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IMethodSymbol>(WrappedType, nameof(TargetMethod));
     InstanceAccessor     = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Instance));
     IsVirtualAccessor    = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsVirtual));
     ArgumentsAccessor    = LightupHelpers.CreateOperationListPropertyAccessor <IOperation>(WrappedType, nameof(Arguments));
 }
コード例 #18
0
 static IUsingOperationWrapper()
 {
     WrappedType            = OperationWrapperHelper.GetWrappedType(typeof(IUsingOperationWrapper));
     ResourcesAccessor      = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Resources));
     BodyAccessor           = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Body));
     LocalsAccessor         = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ImmutableArray <ILocalSymbol> >(WrappedType, nameof(Locals));
     IsAsynchronousAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsAsynchronous));
 }
 static ISwitchExpressionArmOperationWrapper()
 {
     WrappedType     = OperationWrapperHelper.GetWrappedType(typeof(ISwitchExpressionArmOperationWrapper));
     PatternAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Pattern));
     GuardAccessor   = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Guard));
     ValueAccessor   = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Value));
     LocalsAccessor  = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ImmutableArray <ILocalSymbol> >(WrappedType, nameof(Locals));
 }
コード例 #20
0
 static ITryOperationWrapper()
 {
     WrappedType       = OperationWrapperHelper.GetWrappedType(typeof(ITryOperationWrapper));
     BodyAccessor      = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Body));
     CatchesAccessor   = LightupHelpers.CreateOperationListPropertyAccessor <IOperation>(WrappedType, nameof(Catches));
     FinallyAccessor   = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Finally));
     ExitLabelAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ILabelSymbol>(WrappedType, nameof(ExitLabel));
 }
コード例 #21
0
 static IWhileLoopOperationWrapper()
 {
     WrappedType              = OperationWrapperHelper.GetWrappedType(typeof(IWhileLoopOperationWrapper));
     ConditionAccessor        = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Condition));
     ConditionIsTopAccessor   = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(ConditionIsTop));
     ConditionIsUntilAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(ConditionIsUntil));
     IgnoredConditionAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(IgnoredCondition));
 }
コード例 #22
0
 static IRangeOperationWrapper()
 {
     WrappedType          = OperationWrapperHelper.GetWrappedType(typeof(IRangeOperationWrapper));
     LeftOperandAccessor  = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(LeftOperand));
     RightOperandAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(RightOperand));
     IsLiftedAccessor     = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsLifted));
     MethodAccessor       = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IMethodSymbol>(WrappedType, nameof(Method));
 }
コード例 #23
0
 static IConditionalOperationWrapper()
 {
     WrappedType       = OperationWrapperHelper.GetWrappedType(typeof(IConditionalOperationWrapper));
     ConditionAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Condition));
     WhenTrueAccessor  = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(WhenTrue));
     WhenFalseAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(WhenFalse));
     IsRefAccessor     = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsRef));
 }
コード例 #24
0
 static IConversionOperationWrapper()
 {
     WrappedType            = OperationWrapperHelper.GetWrappedType(typeof(IConversionOperationWrapper));
     OperandAccessor        = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Operand));
     OperatorMethodAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IMethodSymbol>(WrappedType, nameof(OperatorMethod));
     IsTryCastAccessor      = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsTryCast));
     IsCheckedAccessor      = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsChecked));
 }
コード例 #25
0
 static ILoopOperationWrapper()
 {
     WrappedType           = OperationWrapperHelper.GetWrappedType(typeof(ILoopOperationWrapper));
     BodyAccessor          = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Body));
     LocalsAccessor        = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ImmutableArray <ILocalSymbol> >(WrappedType, nameof(Locals));
     ContinueLabelAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ILabelSymbol>(WrappedType, nameof(ContinueLabel));
     ExitLabelAccessor     = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ILabelSymbol>(WrappedType, nameof(ExitLabel));
 }
コード例 #26
0
 static IForLoopOperationWrapper()
 {
     WrappedType             = OperationWrapperHelper.GetWrappedType(typeof(IForLoopOperationWrapper));
     BeforeAccessor          = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ImmutableArray <IOperation> >(WrappedType, nameof(Before));
     ConditionLocalsAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ImmutableArray <ILocalSymbol> >(WrappedType, nameof(ConditionLocals));
     ConditionAccessor       = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Condition));
     AtLoopBottomAccessor    = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ImmutableArray <IOperation> >(WrappedType, nameof(AtLoopBottom));
 }
コード例 #27
0
 static IRecursivePatternOperationWrapper()
 {
     WrappedType                       = OperationWrapperHelper.GetWrappedType(typeof(IRecursivePatternOperationWrapper));
     MatchedTypeAccessor               = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ITypeSymbol>(WrappedType, nameof(MatchedType));
     DeconstructSymbolAccessor         = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ISymbol>(WrappedType, nameof(DeconstructSymbol));
     DeconstructionSubpatternsAccessor = LightupHelpers.CreateOperationListPropertyAccessor <IOperation>(WrappedType, nameof(DeconstructionSubpatterns));
     PropertySubpatternsAccessor       = LightupHelpers.CreateOperationListPropertyAccessor <IOperation>(WrappedType, nameof(PropertySubpatterns));
     DeclaredSymbolAccessor            = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ISymbol>(WrappedType, nameof(DeclaredSymbol));
 }
コード例 #28
0
 static ICatchClauseOperationWrapper()
 {
     WrappedType = OperationWrapperHelper.GetWrappedType(typeof(ICatchClauseOperationWrapper));
     ExceptionDeclarationOrExpressionAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(ExceptionDeclarationOrExpression));
     ExceptionTypeAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ITypeSymbol>(WrappedType, nameof(ExceptionType));
     LocalsAccessor        = LightupHelpers.CreateOperationPropertyAccessor <IOperation, ImmutableArray <ILocalSymbol> >(WrappedType, nameof(Locals));
     FilterAccessor        = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Filter));
     HandlerAccessor       = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Handler));
 }
 static IIncrementOrDecrementOperationWrapper()
 {
     WrappedType            = OperationWrapperHelper.GetWrappedType(typeof(IIncrementOrDecrementOperationWrapper));
     IsPostfixAccessor      = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsPostfix));
     IsLiftedAccessor       = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsLifted));
     IsCheckedAccessor      = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsChecked));
     TargetAccessor         = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(Target));
     OperatorMethodAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IMethodSymbol>(WrappedType, nameof(OperatorMethod));
 }
コード例 #30
0
 static IBinaryOperationWrapper()
 {
     WrappedType            = OperationWrapperHelper.GetWrappedType(typeof(IBinaryOperationWrapper));
     LeftOperandAccessor    = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(LeftOperand));
     RightOperandAccessor   = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IOperation>(WrappedType, nameof(RightOperand));
     IsLiftedAccessor       = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsLifted));
     IsCheckedAccessor      = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsChecked));
     IsCompareTextAccessor  = LightupHelpers.CreateOperationPropertyAccessor <IOperation, bool>(WrappedType, nameof(IsCompareText));
     OperatorMethodAccessor = LightupHelpers.CreateOperationPropertyAccessor <IOperation, IMethodSymbol>(WrappedType, nameof(OperatorMethod));
 }