Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ObjectIDGenerator.cs
- ChangeBlockUndoRecord.cs
- DesignerView.Commands.cs
- BuildProviderCollection.cs
- StickyNoteContentControl.cs
- ArrangedElementCollection.cs
- StylusPointPropertyId.cs
- QilExpression.cs
- XsdValidatingReader.cs
- SqlExpressionNullability.cs
- X509ScopedServiceCertificateElementCollection.cs
- GlyphCache.cs
- TrustManagerPromptUI.cs
- regiisutil.cs
- InputLangChangeEvent.cs
- WinEventHandler.cs
- JapaneseCalendar.cs
- ButtonStandardAdapter.cs
- MailHeaderInfo.cs
- DuplicateMessageDetector.cs
- VBCodeProvider.cs
- FormsAuthenticationUser.cs
- dtdvalidator.cs
- PageStatePersister.cs
- EntityTransaction.cs
- EntityDataSourceDataSelection.cs
- AttachedPropertyBrowsableAttribute.cs
- PanningMessageFilter.cs
- Figure.cs
- DataGridViewColumnCollection.cs
- TableItemProviderWrapper.cs
- ParameterToken.cs
- FaultPropagationQuery.cs
- DataSetSchema.cs
- GenericUriParser.cs
- Container.cs
- UIElement3DAutomationPeer.cs
- WebPartEditorApplyVerb.cs
- XmlSchemaSet.cs
- PackagePartCollection.cs
- DbParameterCollectionHelper.cs
- ToolStripGripRenderEventArgs.cs
- Calendar.cs
- GroupQuery.cs
- UpdateException.cs
- DataViewListener.cs
- SqlMethodCallConverter.cs
- Journal.cs
- DeferredElementTreeState.cs
- PriorityBinding.cs
- TextServicesCompartment.cs
- UInt64.cs
- AssociatedControlConverter.cs
- RoleManagerEventArgs.cs
- RemoteTokenFactory.cs
- QilFunction.cs
- RelationshipFixer.cs
- EditorAttribute.cs
- BitmapEffectInput.cs
- HostedElements.cs
- OutputCacheProviderCollection.cs
- DocumentViewerAutomationPeer.cs
- ActivationArguments.cs
- RecognizeCompletedEventArgs.cs
- OletxResourceManager.cs
- DefaultMergeHelper.cs
- BufferedGraphicsManager.cs
- SpellerHighlightLayer.cs
- TraceEventCache.cs
- IISUnsafeMethods.cs
- DrawingState.cs
- LocalizationCodeDomSerializer.cs
- QueryableDataSourceEditData.cs
- RawMouseInputReport.cs
- ToolboxItemAttribute.cs
- ObjectContextServiceProvider.cs
- CallbackValidatorAttribute.cs
- SignedXml.cs
- TraceContext.cs
- LogManagementAsyncResult.cs
- MatrixAnimationUsingPath.cs
- Action.cs
- UserControl.cs
- FixedSOMGroup.cs
- DispatcherObject.cs
- EnumerableRowCollectionExtensions.cs
- XmlMembersMapping.cs
- BinaryFormatter.cs
- ConstNode.cs
- IndependentAnimationStorage.cs
- HostProtectionException.cs
- Int16Converter.cs
- InputLanguageEventArgs.cs
- WebBrowserHelper.cs
- ResumeStoryboard.cs
- ChtmlLinkAdapter.cs
- PageCodeDomTreeGenerator.cs
- DBNull.cs
- DocumentAutomationPeer.cs
- MenuItemBindingCollection.cs