protected override object NewInterface(NewCodeElementItemParams newItemParams, string path) { return(_namespace.AddInterface(path, newItemParams.Position, newItemParams.ImplementedInterfaces.ToCSVDTEParameter(), newItemParams.AccessKind)); }
protected override object NewEnum(NewCodeElementItemParams newItemParams, string path) { return(_codeClass.AddEnum(path, newItemParams.Position, newItemParams.Bases.ToCSVDTEParameter(), newItemParams.AccessKind)); }
private object NewVariable(NewCodeElementItemParams newItemParams, string path) { return(_codeModel.AddVariable(path, newItemParams.MemberType, newItemParams.Position, newItemParams.Access.ToCMAccess())); }
private object NewInterface(NewCodeElementItemParams newItemParams, string path) { return(_codeModel.AddInterface(path, newItemParams.Position, newItemParams.Bases.ToCSVDTEParameter(), newItemParams.Access.ToCMAccess())); }
protected override object NewInterface(NewCodeElementItemParams newItemParams, string path) { return _namespace.AddInterface(path, newItemParams.Position, newItemParams.ImplementedInterfaces.ToCSVDTEParameter(), newItemParams.AccessKind); }
protected override object NewVariable(NewCodeElementItemParams newItemParams, string path, object newItemValue) { return(_enum.AddMember( path, newItemValue.ToDTEParameter(), newItemParams.Position)); }
protected override object NewVariable(NewCodeElementItemParams newItemParams, string path, object newItemValue) { return _enum.AddMember( path, newItemValue.ToDTEParameter(), newItemParams.Position); }
protected override object NewAttribute(NewCodeElementItemParams p, string path, object newItemValue) { var value = null == newItemValue ? null : newItemValue.ToString(); return _element.AddAttribute(path, value, p.Position.ToDTEParameter()); }
protected override object NewVariable(NewCodeElementItemParams newItemParams, string path, object value) { return _codeClass.AddVariable(path, newItemParams.MemberType, newItemParams.Position, newItemParams.AccessKind, Type.Missing); }
protected override object NewStruct(NewCodeElementItemParams newItemParams, string path) { return(_struct.AddStruct(path, newItemParams.Position, newItemParams.Bases.ToCSVDTEParameter(), newItemParams.ImplementedInterfaces.ToCSVDTEParameter(), newItemParams.AccessKind)); }
protected override object NewMethod(NewCodeElementItemParams newItemParams, string path) { return _interface.AddFunction(path, newItemParams.FunctionKind, newItemParams.MemberType, newItemParams.Position, newItemParams.AccessKind); }
protected override object NewStruct(NewCodeElementItemParams newItemParams, string path) { return _codeClass.AddStruct(path, newItemParams.Position, newItemParams.Bases.ToCSVDTEParameter(), newItemParams.ImplementedInterfaces.ToCSVDTEParameter(), newItemParams.AccessKind); }
private object NewMethod(NewCodeElementItemParams newItemParams, string path) { return(_codeModel.AddFunction(path, newItemParams.MethodType.ToCMFunction(), newItemParams.MemberType, newItemParams.Position, newItemParams.Access.ToCMAccess())); }
private object NewAttribute(NewCodeElementItemParams p, string path, object newItemValue) { var value = null == newItemValue ? null : newItemValue.ToString(); return(_codeModel.AddAttribute(path, value, p.Position.ToDTEParameter())); }
protected override object NewVariable(NewCodeElementItemParams newItemParams, string path, object value) { return(_codeClass.AddVariable(path, newItemParams.MemberType, newItemParams.Position, newItemParams.AccessKind, Type.Missing)); }
protected override object NewMethod(NewCodeElementItemParams newItemParams, string path) { return(_interface.AddFunction(path, newItemParams.FunctionKind, newItemParams.MemberType, newItemParams.Position, newItemParams.AccessKind)); }
protected override object NewDelegate(NewCodeElementItemParams newItemParams, string path) { return(_codeClass.AddDelegate(path, newItemParams.MemberType, newItemParams.Position, newItemParams.AccessKind )); }
protected override object NewAttribute(NewCodeElementItemParams p, string path, object newItemValue) { var value = null == newItemValue ? null : newItemValue.ToString(); return(_interface.AddAttribute(path, value, p.Position.ToDTEParameter())); }
protected override object NewProperty(NewCodeElementItemParams newItemParams, string path) { return _codeClass.AddProperty(newItemParams.Get ? path : null, newItemParams.Set ? path : null, newItemParams.MemberType, newItemParams.Position, newItemParams.AccessKind, Type.Missing); }
protected override object NewProperty(NewCodeElementItemParams newItemParams, string path) { return(_interface.AddProperty(newItemParams.Get ? path : null, newItemParams.Set ? path : null, newItemParams.MemberType, newItemParams.Position, newItemParams.AccessKind, Type.Missing)); }
protected override object NewEvent(NewCodeElementItemParams newCodeElementItemParams, string path) { return(_codeClass.AddEvent( path, newCodeElementItemParams.MemberType, false, Type.Missing, newCodeElementItemParams.AccessKind )); }
protected override object NewEvent(NewCodeElementItemParams newCodeElementItemParams, string path) { return(_interface.AddEvent( path, newCodeElementItemParams.MemberType, false, Type.Missing, newCodeElementItemParams.Access.ToCMAccess() )); }
protected override object NewEvent(NewCodeElementItemParams newCodeElementItemParams, string path) { return _interface.AddEvent( path, newCodeElementItemParams.MemberType, false, Type.Missing, newCodeElementItemParams.Access.ToCMAccess() ); }
protected override object NewEvent(NewCodeElementItemParams newCodeElementItemParams, string path) { return _codeClass.AddEvent( path, newCodeElementItemParams.MemberType, false, Type.Missing, newCodeElementItemParams.AccessKind ); }
protected override object NewParameter(NewCodeElementItemParams newItemParams, string path, object value) { CodeProperty2 p2 = _property as CodeProperty2; if (null == p2) { throw new PropertyDoesNotSupportParametersException(_property.Name); } return p2.AddParameter(path, newItemParams.MemberType, newItemParams.Position); }
protected override object NewParameter(NewCodeElementItemParams newItemParams, string path, object value) { CodeProperty2 p2 = _property as CodeProperty2; if (null == p2) { throw new PropertyDoesNotSupportParametersException(_property.Name); } return(p2.AddParameter(path, newItemParams.MemberType, newItemParams.Position)); }
private object NewImport(NewCodeElementItemParams newItemParams, string path, object newItemValue) { FileCodeModel2 fileCodeModel2 = _codeModel as FileCodeModel2; if (null == fileCodeModel2) { return(null); } // apparantly required to prevent an exception in VS newItemParams.Position = Math.Max(newItemParams.Position, 0); return(fileCodeModel2.AddImport(path, newItemParams.Position, String.Empty)); }
private object NewProperty(NewCodeElementItemParams newItemParams, string path) { var kind = vsCMFunction.vsCMFunctionPropertyGet; if (newItemParams.Set.IsPresent) { kind |= vsCMFunction.vsCMFunctionPropertySet; } return(_codeModel.AddFunction(path, kind, newItemParams.MemberType, newItemParams.Position, newItemParams.Access.ToCMAccess() )); }
protected override object NewParameter(NewCodeElementItemParams newItemParams, string path, object value) { return(_element.AddParameter(path, newItemParams.MemberType, newItemParams.Position)); }
protected override object NewNamespace(NewCodeElementItemParams newItemParams, string path) { return(_namespace.AddNamespace(path, newItemParams.Position)); }
private object NewAttribute(NewCodeElementItemParams p, string path, object newItemValue) { var value = null == newItemValue ? null : newItemValue.ToString(); return _codeModel.AddAttribute(path, value, p.Position.ToDTEParameter()); }
private object NewClass(NewCodeElementItemParams newItemParams, string path) { return _codeModel.AddClass(path, newItemParams.Position, newItemParams.Bases.ToCSVDTEParameter(), newItemParams.ImplementedInterfaces.ToCSVDTEParameter(), newItemParams.Access.ToCMAccess() ); }
protected virtual object NewClass(NewCodeElementItemParams newItemParams, string path) { return null; }
protected virtual object NewVariable(NewCodeElementItemParams newItemParams, string path, object newItemValue) { return null; }
private object NewNamespace(NewCodeElementItemParams newItemParams, string path) { return(_codeModel.AddNamespace(path, newItemParams.Position)); }
protected override object NewParameter(NewCodeElementItemParams newItemParams, string path, object value) { return _element.AddParameter(path, newItemParams.MemberType, newItemParams.Position); }
protected virtual object NewImport(NewCodeElementItemParams p, string path, object newItemValue) { return null; }
protected virtual object NewVariable(NewCodeElementItemParams newItemParams, string path, object newItemValue) { return(null); }
private object NewImport(NewCodeElementItemParams newItemParams, string path, object newItemValue) { FileCodeModel2 fileCodeModel2 = _codeModel as FileCodeModel2; if (null == fileCodeModel2) { return null; } // apparantly required to prevent an exception in VS newItemParams.Position = Math.Max(newItemParams.Position, 0); return fileCodeModel2.AddImport(path, newItemParams.Position, String.Empty); }
protected virtual object NewImport(NewCodeElementItemParams p, string path, object newItemValue) { return(null); }
private object NewProperty(NewCodeElementItemParams newItemParams, string path) { var kind = vsCMFunction.vsCMFunctionPropertyGet; if (newItemParams.Set.IsPresent) { kind |= vsCMFunction.vsCMFunctionPropertySet; } return _codeModel.AddFunction(path, kind, newItemParams.MemberType, newItemParams.Position, newItemParams.Access.ToCMAccess() ); }
private object NewNamespace(NewCodeElementItemParams newItemParams, string path) { return _codeModel.AddNamespace(path, newItemParams.Position); }
protected override object NewParameter(NewCodeElementItemParams newItemParams, string path, object newValue) { return(_attribute.AddArgument(newValue.ToString(), path, newItemParams.Position)); }
private object NewMethod(NewCodeElementItemParams newItemParams, string path) { return _codeModel.AddFunction(path, newItemParams.MethodType.ToCMFunction(), newItemParams.MemberType, newItemParams.Position, newItemParams.Access.ToCMAccess()); }
protected virtual object NewClass(NewCodeElementItemParams newItemParams, string path) { return(null); }
private object NewDelegate(NewCodeElementItemParams newItemParams, string path) { return _codeModel.AddDelegate(path, newItemParams.MemberType, newItemParams.Position, newItemParams.Access.ToCMAccess() ); }
protected override object NewNamespace(NewCodeElementItemParams newItemParams, string path) { return _namespace.AddNamespace(path, newItemParams.Position); }
protected override object NewParameter(NewCodeElementItemParams newItemParams, string path, object newValue) { return _attribute.AddArgument(newValue.ToString(), path, newItemParams.Position); }
protected override object NewDelegate(NewCodeElementItemParams newItemParams, string path) { return _namespace.AddDelegate(path, newItemParams.MemberType, newItemParams.Position, newItemParams.AccessKind ); }
protected override object NewEnum(NewCodeElementItemParams newItemParams, string path) { return _struct.AddEnum(path, newItemParams.Position, newItemParams.Bases.ToCSVDTEParameter(), newItemParams.AccessKind); }