Пример #1
0
 public StructGenerator(Dictionary <string, TypeDeclaration> typeData, NameLookup nameLookup, NamespaceMap namespaceMap, CommentGenerator commentGenerator)
 {
     this.typeData         = typeData;
     this.nameLookup       = nameLookup;
     this.namespaceMap     = namespaceMap;
     this.commentGenerator = commentGenerator;
 }
Пример #2
0
 public MarshalledStructGenerator(Dictionary <string, TypeDeclaration> typeData, NameLookup nameLookup, IEnumerable <IMemberPatternRule> patternRules, NamespaceMap namespaceMap, CommentGenerator commentGenerator)
 {
     this.typeData         = typeData;
     this.nameLookup       = nameLookup;
     this.patternRules     = patternRules;
     this.namespaceMap     = namespaceMap;
     this.commentGenerator = commentGenerator;
 }
Пример #3
0
 public HandleGenerator(Dictionary <string, TypeDeclaration> typeData,
                        NameLookup nameLookup,
                        IEnumerable <CommandDeclaration> commands,
                        IEnumerable <IMarshalValueRule> marshallingRules,
                        IEnumerable <IMemberPatternRule> memberPatternRules,
                        ParsedExpressionTokenCheck tokenCheck,
                        NamespaceMap namespaceMap,
                        CommentGenerator commentGenerator)
 {
     this.typeData           = typeData;
     this.nameLookup         = nameLookup;
     this.commands           = commands.GroupBy(x => x.HandleTypeName).ToDictionary(x => x.Key, x => x.AsEnumerable());
     this.marshallingRules   = marshallingRules;
     this.memberPatternRules = memberPatternRules;
     this.tokenCheck         = tokenCheck;
     this.namespaceMap       = namespaceMap;
     this.commentGenerator   = commentGenerator;
 }
Пример #4
0
 public ExceptionGenerator(IEnumerable <EnumDeclaration> enums, NamespaceMap namespaceMap, CommentGenerator commentGenerator)
 {
     this.resultEnum       = enums.Single(x => x.VkName == "VkResult");
     this.namespaceMap     = namespaceMap;
     this.commentGenerator = commentGenerator;
 }
Пример #5
0
 public EnumGenerator(IEnumerable <EnumDeclaration> enums, NamespaceMap namespaceMap, CommentGenerator commentGenerator)
 {
     this.enums            = enums;
     this.namespaceMap     = namespaceMap;
     this.commentGenerator = commentGenerator;
 }