internal EnvDTE80.CodeAttributeArgument AddAttributeArgument( SyntaxNode containerNode, string name, string value, object position ) { var attributeArgumentNode = CodeModelService.CreateAttributeArgumentNode( CodeModelService.GetUnescapedName(name), value ); var insertionIndex = CodeModelService.PositionVariantToAttributeArgumentInsertionIndex( position, containerNode, fileCodeModel: this ); var newNode = InsertAttributeArgument( containerNode, attributeArgumentNode, insertionIndex ); return((EnvDTE80.CodeAttributeArgument)CodeModelService.CreateInternalCodeElement( this.State, fileCodeModel: this, node: newNode )); }