/// <summary> /// Gets an attribute from the code. /// </summary> /// <param name="parentReference">The parent code unit.</param> /// <param name="unsafeCode">Indicates whether the attribute lies within an unsafe code block.</param> /// <returns>Returns the attribute.</returns> private Attribute GetAttribute(Reference<ICodePart> parentReference, bool unsafeCode) { Param.AssertNotNull(parentReference, "parentReference"); Param.Ignore(unsafeCode); CodeParser attributeParser = new CodeParser(this.parser, this.symbols); return attributeParser.ParseAttribute(parentReference, unsafeCode, this.document); }
private Microsoft.StyleCop.CSharp.Attribute GetAttribute(bool unsafeCode) { CodeParser parser = new CodeParser(this.parser, this.symbols); return parser.ParseAttribute(unsafeCode); }