public TypescriptTypeDeclaration(
     CodeTypeDeclaration typeDeclaration,
     IMemberFactory memberFactory,
     ITypescriptTypeMapper typescriptTypeMapper,
     ITypescriptTypeParameter typescriptTypeParameter,
     CodeGeneratorOptions options)
 {
     _typeDeclaration         = typeDeclaration;
     _memberFactory           = memberFactory;
     _typescriptTypeMapper    = typescriptTypeMapper;
     _typescriptTypeParameter = typescriptTypeParameter;
     _options = options;
 }
 public TypescriptTypeDeclaration(
     CodeTypeDeclaration typeDeclaration,
     IMemberFactory memberFactory,
     ITypescriptTypeMapper typescriptTypeMapper,
     ITypescriptTypeParameter typescriptTypeParameter,
     CodeGeneratorOptions options)
 {
     _typeDeclaration = typeDeclaration;
     _memberFactory = memberFactory;
     _typescriptTypeMapper = typescriptTypeMapper;
     _typescriptTypeParameter = typescriptTypeParameter;
     _options = options;
 }
 public TypescriptMemberMethod(
     IExpressionFactory expressionFactory,
     IStatementFactory statementFactory,
     ITypescriptTypeMapper typescriptTypeMapper,
     ITypescriptTypeParameter typescriptTypeParameter,
     CodeMemberMethod member,
     CodeGeneratorOptions options)
 {
     _expressionFactory       = expressionFactory;
     _statementFactory        = statementFactory;
     _typescriptTypeMapper    = typescriptTypeMapper;
     _typescriptTypeParameter = typescriptTypeParameter;
     _member  = member;
     _options = options;
 }
Пример #4
0
        public MemberFactory(
            IExpressionFactory expressionFactory,
            IStatementFactory statementFactory,
            ITypescriptTypeMapper typescriptTypeMapper,
            ITypescriptTypeParameter typescriptTypeParameter)
        {
            _expressionFactory       = expressionFactory;
            _statementFactory        = statementFactory;
            _typescriptTypeMapper    = typescriptTypeMapper;
            _typescriptTypeParameter = typescriptTypeParameter;
            _memberMap = new Dictionary <Type, Func <CodeTypeMember, CodeGeneratorOptions, IMember> >();

            ConstructMembers();
            System.Diagnostics.Debug.WriteLine("MemberFactory Created");
        }
 public TypescriptMemberMethod(
     IExpressionFactory expressionFactory,
     IStatementFactory statementFactory,
     ITypescriptTypeMapper typescriptTypeMapper,
     ITypescriptTypeParameter typescriptTypeParameter,
     CodeMemberMethod member,
     CodeGeneratorOptions options)
 {
     _expressionFactory = expressionFactory;
     _statementFactory = statementFactory;
     _typescriptTypeMapper = typescriptTypeMapper;
     _typescriptTypeParameter = typescriptTypeParameter;
     _member = member;
     _options = options;
 }