/// <summary> /// Parses and returns an empty element. /// </summary> /// <param name="parent"> /// The parent of the namespace. /// </param> /// <param name="elementReference"> /// A reference to the element being created. /// </param> /// <param name="unsafeCode"> /// Indicates whether the code is marked as unsafe. /// </param> /// <param name="generated"> /// Indicates whether the code is marked as generated code. /// </param> /// <returns> /// Returns the element. /// </returns> private EmptyElement ParseEmptyElement(CsElement parent, Reference<ICodePart> elementReference, bool unsafeCode, bool generated) { Param.AssertNotNull(parent, "parent"); Param.AssertNotNull(elementReference, "elementReference"); Param.Ignore(unsafeCode); Param.Ignore(generated); this.tokens.Add(this.GetToken(CsTokenType.Semicolon, SymbolType.Semicolon, elementReference)); // Create the declaration. CsTokenList declarationTokens = new CsTokenList(this.tokens, this.tokens.Last, this.tokens.Last); Declaration declaration = new Declaration(declarationTokens, string.Empty, ElementType.EmptyElement, AccessModifierType.Public); // Create the element. EmptyElement element = new EmptyElement(this.document, parent, declaration, unsafeCode, generated); elementReference.Target = element; return element; }
/// <summary> /// The save. /// </summary> /// <param name="emptyElement"> /// The empty element. /// </param> private void Save(EmptyElement emptyElement) { }