public CodeDomCodeVariable(DTE dte, CodeElement parent, string name, CodeTypeRef type, vsCMAccess access) : base(dte, name) { CodeObject = new CodeMemberField(CodeDomCodeTypeRef.ToCodeTypeReference(type), name); CodeObject.Attributes = VSAccessToMemberAccess(access); CodeObject.UserData[CodeKey] = this; this.parent = parent; }
public CodeDomCodeParameter(DTE dte, CodeElement parent, string name, CodeTypeRef type) : base(dte, name) { this.parent = parent; this.type = type; CodeObject = new CodeParameterDeclarationExpression( CodeDomCodeTypeRef.ToCodeTypeReference(type), name); CodeObject.UserData[CodeKey] = this; }
public CodeDomCodeProperty(DTE dte, CodeClass parent, string name, string putName, object type, vsCMAccess access) : base(dte, name) { this.parent = parent; CodeMemberProperty prop = new CodeMemberProperty(); prop.Name = name; prop.UserData[CodeKey] = this; CodeObject = prop; prop.Type = CodeDomCodeTypeRef.ToCodeTypeReference(ObjectToTypeRef(type)); prop.Attributes = VSAccessToMemberAccess(access); }