protected virtual void methodsToEDialect(CodeWriter writer, MethodDeclarationList methods) { writer.indent(); foreach (IDeclaration decl in methods) { writer.newLine(); if (decl.Comments != null) { foreach (CommentStatement comment in decl.Comments) { comment.ToDialect(writer); } } if (decl.Annotations != null) { foreach (Annotation annotation in decl.Annotations) { annotation.ToDialect(writer); } } CodeWriter w = writer.newMemberWriter(); decl.ToDialect(w); } writer.dedent(); }
public NativeResourceDeclaration(String name, IdentifierList attributes, NativeCategoryBindingList categoryBindings, NativeAttributeBindingListMap attributeBindings, MethodDeclarationList methods) : base(name, attributes, categoryBindings, attributeBindings, methods) { }
public NativeCategoryDeclaration(String name, IdentifierList attributes, NativeCategoryBindingList categoryBindings, NativeAttributeBindingListMap attributeBindings, MethodDeclarationList methods) : base(name, attributes, null, methods) { this.categoryBindings = categoryBindings; // this.attributeBindings = attributeBindings; }
public ConcreteWidgetDeclaration(String name, String derivedFrom, MethodDeclarationList methods) : base(name, null, derivedFrom == null ? null : new IdentifierList(derivedFrom), methods) { }
public SingletonCategoryDeclaration(String name, IdentifierList attributes, MethodDeclarationList methods) : base(name, attributes, null, methods) { }
public NativeWidgetDeclaration(String name, NativeCategoryBindingList categoryBindings, MethodDeclarationList methods) : base(name, null, categoryBindings, null, methods) { }
public ConcreteCategoryDeclaration(String name, IdentifierList attrs, IdentifierList derivedFrom, MethodDeclarationList methods) : base(name, attrs) { this.derivedFrom = derivedFrom; this.methods = methods != null ? methods : new MethodDeclarationList(); }
public ConcreteCategoryDeclaration(String name) : base(name) { this.methods = new MethodDeclarationList(); }
public void SetLocalMethods(MethodDeclarationList methods) { this.methods = methods; }