Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Query / InternalTrees / AncillaryOps.cs / 1 / AncillaryOps.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; namespace System.Data.Query.InternalTrees { ////// A definition of a variable /// internal sealed class VarDefOp : AncillaryOp { #region private state private Var m_var; #endregion #region constructors internal VarDefOp(Var v) : this() { m_var = v; } private VarDefOp() : base(OpType.VarDef) { } #endregion #region public methods internal static readonly VarDefOp Pattern = new VarDefOp(); ////// 1 child - the defining expression /// internal override int Arity { get { return 1; } } ////// The Var being defined /// internal Var Var { get { return m_var; } } ////// Visitor pattern method /// /// The BasicOpVisitor that is visiting this Op /// The Node that references this Op [DebuggerNonUserCode] internal override void Accept(BasicOpVisitor v, Node n) { v.Visit(this, n); } ////// Visitor pattern method for visitors with a return value /// /// The visitor /// The node in question ///An instance of TResultType [DebuggerNonUserCode] internal override TResultType Accept(BasicOpVisitorOfT v, Node n) { return v.Visit(this, n); } #endregion } /// /// Helps define a list of VarDefOp /// internal sealed class VarDefListOp : AncillaryOp { #region constructors private VarDefListOp() : base(OpType.VarDefList) { } #endregion #region public methods ////// singleton instance /// internal static readonly VarDefListOp Instance = new VarDefListOp(); internal static readonly VarDefListOp Pattern = Instance; ////// Visitor pattern method /// /// The BasicOpVisitor that is visiting this Op /// The Node that references this Op [DebuggerNonUserCode] internal override void Accept(BasicOpVisitor v, Node n) { v.Visit(this, n); } ////// Visitor pattern method for visitors with a return value /// /// The visitor /// The node in question ///An instance of TResultType [DebuggerNonUserCode] internal override TResultType Accept(BasicOpVisitorOfT v, Node n) { return v.Visit(this, n); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; namespace System.Data.Query.InternalTrees { ////// A definition of a variable /// internal sealed class VarDefOp : AncillaryOp { #region private state private Var m_var; #endregion #region constructors internal VarDefOp(Var v) : this() { m_var = v; } private VarDefOp() : base(OpType.VarDef) { } #endregion #region public methods internal static readonly VarDefOp Pattern = new VarDefOp(); ////// 1 child - the defining expression /// internal override int Arity { get { return 1; } } ////// The Var being defined /// internal Var Var { get { return m_var; } } ////// Visitor pattern method /// /// The BasicOpVisitor that is visiting this Op /// The Node that references this Op [DebuggerNonUserCode] internal override void Accept(BasicOpVisitor v, Node n) { v.Visit(this, n); } ////// Visitor pattern method for visitors with a return value /// /// The visitor /// The node in question ///An instance of TResultType [DebuggerNonUserCode] internal override TResultType Accept(BasicOpVisitorOfT v, Node n) { return v.Visit(this, n); } #endregion } /// /// Helps define a list of VarDefOp /// internal sealed class VarDefListOp : AncillaryOp { #region constructors private VarDefListOp() : base(OpType.VarDefList) { } #endregion #region public methods ////// singleton instance /// internal static readonly VarDefListOp Instance = new VarDefListOp(); internal static readonly VarDefListOp Pattern = Instance; ////// Visitor pattern method /// /// The BasicOpVisitor that is visiting this Op /// The Node that references this Op [DebuggerNonUserCode] internal override void Accept(BasicOpVisitor v, Node n) { v.Visit(this, n); } ////// Visitor pattern method for visitors with a return value /// /// The visitor /// The node in question ///An instance of TResultType [DebuggerNonUserCode] internal override TResultType Accept(BasicOpVisitorOfT v, Node n) { return v.Visit(this, n); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ControlPropertyNameConverter.cs
- followingquery.cs
- ApplicationProxyInternal.cs
- CroppedBitmap.cs
- HideDisabledControlAdapter.cs
- CroppedBitmap.cs
- CapabilitiesUse.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- NavigateEvent.cs
- EntityParameter.cs
- XmlSchemaComplexType.cs
- PlainXmlDeserializer.cs
- BasicDesignerLoader.cs
- DoubleKeyFrameCollection.cs
- SortedDictionary.cs
- RemoteHelper.cs
- safemediahandle.cs
- DataTableReaderListener.cs
- AddInServer.cs
- DataSourceUtil.cs
- BrowsableAttribute.cs
- PerspectiveCamera.cs
- ExecutionScope.cs
- IxmlLineInfo.cs
- updateconfighost.cs
- BaseDataListDesigner.cs
- ResizeGrip.cs
- CLSCompliantAttribute.cs
- Bidi.cs
- EntityContainerEntitySet.cs
- PageVisual.cs
- Color.cs
- CatalogPartCollection.cs
- LogManagementAsyncResult.cs
- FlowDocumentReader.cs
- FatalException.cs
- CodeNamespaceCollection.cs
- CodeTryCatchFinallyStatement.cs
- BaseParser.cs
- BindingCompleteEventArgs.cs
- EventRoute.cs
- PartBasedPackageProperties.cs
- EntityParameter.cs
- HttpCacheVaryByContentEncodings.cs
- FlowchartDesigner.Helpers.cs
- ColorContextHelper.cs
- EmbeddedMailObject.cs
- IdnMapping.cs
- InputBinding.cs
- GroupQuery.cs
- BamlWriter.cs
- ImageCodecInfo.cs
- DynamicValidatorEventArgs.cs
- StylusEventArgs.cs
- ManagedIStream.cs
- SHA1Cng.cs
- WebColorConverter.cs
- MetadataCollection.cs
- DataGridViewIntLinkedList.cs
- CommandEventArgs.cs
- HostingEnvironment.cs
- ProfileBuildProvider.cs
- CodeNamespaceImportCollection.cs
- ComponentManagerBroker.cs
- RequestCache.cs
- BitmapEffectrendercontext.cs
- ConfigErrorGlyph.cs
- GroupItem.cs
- HashCodeCombiner.cs
- Highlights.cs
- WebAdminConfigurationHelper.cs
- SqlDataSourceStatusEventArgs.cs
- PropagatorResult.cs
- DataControlFieldCollection.cs
- AdapterDictionary.cs
- XmlILAnnotation.cs
- NotEqual.cs
- KeyConstraint.cs
- RequestDescription.cs
- FixedSOMTableRow.cs
- IFlowDocumentViewer.cs
- SimpleTypesSurrogate.cs
- XmlSchemaSimpleContentRestriction.cs
- IPHostEntry.cs
- IndexExpression.cs
- UrlAuthFailureHandler.cs
- UpDownBase.cs
- CollectionConverter.cs
- CommonXSendMessage.cs
- NamespaceEmitter.cs
- ThousandthOfEmRealDoubles.cs
- CaseInsensitiveOrdinalStringComparer.cs
- GeometryDrawing.cs
- DbSourceParameterCollection.cs
- XmlMembersMapping.cs
- ClipboardData.cs
- ThrowHelper.cs
- CursorConverter.cs
- BasicCellRelation.cs
- unsafenativemethodsother.cs