public ExpandCastExpressions(TypeSystem typeSystem, JSSpecialIdentifiers js, JSILIdentifier jsil, ITypeInfoSource typeInfo)
 {
     TypeSystem = typeSystem;
     JS = js;
     JSIL = jsil;
     TypeInfo = typeInfo;
 }
Example #2
0
        public IntroduceEnumCasts(
            TypeSystem typeSystem, JSSpecialIdentifiers js,
            TypeInfoProvider typeInfo, MethodTypeFactory methodTypes,
            IFunctionSource functionSource
            )
        {
            TypeSystem     = typeSystem;
            TypeInfo       = typeInfo;
            MethodTypes    = methodTypes;
            JS             = js;
            FunctionSource = functionSource;

            LogicalOperators = new HashSet <JSOperator>()
            {
                JSOperator.LogicalAnd,
                JSOperator.LogicalOr,
                JSOperator.LogicalNot
            };

            BitwiseOperators = new HashSet <JSOperator>()
            {
                JSOperator.BitwiseAnd,
                JSOperator.BitwiseOr,
                JSOperator.BitwiseXor
            };
        }
Example #3
0
 public ExpandCastExpressions(TypeSystem typeSystem, JSSpecialIdentifiers js, JSILIdentifier jsil, ITypeInfoSource typeInfo)
 {
     TypeSystem = typeSystem;
     JS         = js;
     JSIL       = jsil;
     TypeInfo   = typeInfo;
 }
Example #4
0
 public ExpandCastExpressions (TypeSystem typeSystem, JSSpecialIdentifiers js, JSILIdentifier jsil, ITypeInfoSource typeInfo, MethodTypeFactory methodTypeFactory) {
     TypeSystem = typeSystem;
     JS = js;
     JSIL = jsil;
     TypeInfo = typeInfo;
     MethodTypeFactory = methodTypeFactory;
 }
Example #5
0
 public ReplaceMethodCalls (
     MethodReference method, JSILIdentifier jsil, JSSpecialIdentifiers js, TypeSystem typeSystem
 ) {
     Method = method;
     JSIL = jsil;
     JS = js;
     TypeSystem = typeSystem;
 }
Example #6
0
 public ExpandCastExpressions(TypeSystem typeSystem, JSSpecialIdentifiers js, JSILIdentifier jsil, ITypeInfoSource typeInfo, MethodTypeFactory methodTypeFactory)
 {
     TypeSystem        = typeSystem;
     JS                = js;
     JSIL              = jsil;
     TypeInfo          = typeInfo;
     MethodTypeFactory = methodTypeFactory;
 }
Example #7
0
 public ReplaceMethodCalls(
     MethodReference method, JSILIdentifier jsil, JSSpecialIdentifiers js, TypeSystem typeSystem
     )
 {
     Method     = method;
     JSIL       = jsil;
     JS         = js;
     TypeSystem = typeSystem;
 }
Example #8
0
        public IntroduceEnumCasts(TypeSystem typeSystem, JSSpecialIdentifiers js, TypeInfoProvider typeInfo, MethodTypeFactory methodTypes)
        {
            TypeSystem  = typeSystem;
            TypeInfo    = typeInfo;
            MethodTypes = methodTypes;
            JS          = js;

            LogicalOperators = new HashSet <JSOperator>()
            {
                JSOperator.LogicalAnd,
                JSOperator.LogicalOr,
                JSOperator.LogicalNot
            };
        }
Example #9
0
        public IntroduceEnumCasts (TypeSystem typeSystem, JSSpecialIdentifiers js, TypeInfoProvider typeInfo, MethodTypeFactory methodTypes) {
            TypeSystem = typeSystem;
            TypeInfo = typeInfo;
            MethodTypes = methodTypes;
            JS = js;

            LogicalOperators = new HashSet<JSOperator>() {
                JSOperator.LogicalAnd,
                JSOperator.LogicalOr,
                JSOperator.LogicalNot
            };

            BitwiseOperators = new HashSet<JSOperator>() {
                JSOperator.BitwiseAnd,
                JSOperator.BitwiseOr,
                JSOperator.BitwiseXor
            };
        }
Example #10
0
 public ReplaceMethodCalls(JSILIdentifier jsil, JSSpecialIdentifiers js, TypeSystem typeSystem)
 {
     JSIL = jsil;
     JS = js;
     TypeSystem = typeSystem;
 }
Example #11
0
 public SimplifyOperators(JSILIdentifier jsil, JSSpecialIdentifiers js, TypeSystem typeSystem)
 {
     JSIL       = jsil;
     JS         = js;
     TypeSystem = typeSystem;
 }
 public HandleBooleanAsInteger(TypeSystem typeSystem, JSSpecialIdentifiers js)
 {
     TypeSystem = typeSystem;
     JS = js;
 }
Example #13
0
 public IntroduceCharCasts(TypeSystem typeSystem, JSSpecialIdentifiers js)
 {
     TypeSystem = typeSystem;
     JS         = js;
 }
Example #14
0
 public IntroduceCharCasts (TypeSystem typeSystem, JSSpecialIdentifiers js) {
     TypeSystem = typeSystem;
     JS = js;
 }
 public ExpandCastExpressions(TypeSystem typeSystem, JSSpecialIdentifiers js, JSILIdentifier jsil)
 {
     TypeSystem = typeSystem;
     JS = js;
     JSIL = jsil;
 }
Example #16
0
 public HandleBooleanAsInteger(TypeSystem typeSystem, JSSpecialIdentifiers js)
 {
     TypeSystem = typeSystem;
     JS         = js;
 }
Example #17
0
 public SimplifyOperators (JSILIdentifier jsil, JSSpecialIdentifiers js, TypeSystem typeSystem) {
     JSIL = jsil;
     JS = js;
     TypeSystem = typeSystem;
 }