Beispiel #1
0
 /// <summary>
 /// Determines if the <paramref name="atomElement"/> was already written for this entry scope.
 /// </summary>
 /// <param name="atomElement">The ATOM element to test for.</param>
 /// <returns>true if the <paramref name="atomElement"/> was already written for this entry scope; false otherwise.</returns>
 internal bool IsElementWritten(AtomElement atomElement)
 {
     DebugUtils.CheckNoExternalCallers();
     return((this.alreadyWrittenElements & (int)atomElement) == (int)atomElement);
 }
Beispiel #2
0
 /// <summary>
 /// Marks the <paramref name="atomElement"/> as written in this entry scope.
 /// </summary>
 /// <param name="atomElement">The ATOM element which was written.</param>
 internal void SetWrittenElement(AtomElement atomElement)
 {
     DebugUtils.CheckNoExternalCallers();
     Debug.Assert(!this.IsElementWritten(atomElement), "Can't write the same element twice.");
     this.alreadyWrittenElements |= (int)atomElement;
 }
Beispiel #3
0
 /// <summary>
 /// Determines if the <paramref name="atomElement"/> was already written for this entry scope.
 /// </summary>
 /// <param name="atomElement">The ATOM element to test for.</param>
 /// <returns>true if the <paramref name="atomElement"/> was already written for this entry scope; false otherwise.</returns>
 internal bool IsElementWritten(AtomElement atomElement)
 {
     return((this.alreadyWrittenElements & (int)atomElement) == (int)atomElement);
 }
Beispiel #4
0
 /// <summary>
 /// Determines if the <paramref name="atomElement"/> was already written for this entry scope.
 /// </summary>
 /// <param name="atomElement">The ATOM element to test for.</param>
 /// <returns>true if the <paramref name="atomElement"/> was already written for this entry scope; false otherwise.</returns>
 internal bool IsElementWritten(AtomElement atomElement)
 {
     return (this.alreadyWrittenElements & (int)atomElement) == (int)atomElement;
 }
Beispiel #5
0
 /// <summary>
 /// Marks the <paramref name="atomElement"/> as written in this entry scope.
 /// </summary>
 /// <param name="atomElement">The ATOM element which was written.</param>
 internal void SetWrittenElement(AtomElement atomElement)
 {
     Debug.Assert(!this.IsElementWritten(atomElement), "Can't write the same element twice.");
     this.alreadyWrittenElements |= (int)atomElement;
 }
 /// <summary>
 /// Determines if the <paramref name="atomElement"/> was already written for this entry scope.
 /// </summary>
 /// <param name="atomElement">The ATOM element to test for.</param>
 /// <returns>true if the <paramref name="atomElement"/> was already written for this entry scope; false otherwise.</returns>
 internal bool IsElementWritten(AtomElement atomElement)
 {
     DebugUtils.CheckNoExternalCallers();
     return (this.alreadyWrittenElements & (int)atomElement) == (int)atomElement;
 }