Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Query / InternalTrees / AncillaryOps.cs / 1305376 / AncillaryOps.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- 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 [....] // @backupOwner [....] //--------------------------------------------------------------------- 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
- SrgsText.cs
- ProjectionPath.cs
- GroupByExpressionRewriter.cs
- PropertyPushdownHelper.cs
- DataControlCommands.cs
- newitemfactory.cs
- EventPropertyMap.cs
- ImageCollectionEditor.cs
- PagesSection.cs
- TemplatePropertyEntry.cs
- DbProviderFactoriesConfigurationHandler.cs
- FrameworkContentElement.cs
- BasicHttpMessageCredentialType.cs
- DataTableExtensions.cs
- XmlAttributeOverrides.cs
- MetricEntry.cs
- MetadataItemSerializer.cs
- EmptyQuery.cs
- CngKey.cs
- SkinBuilder.cs
- InsufficientExecutionStackException.cs
- BaseServiceProvider.cs
- RightsManagementEncryptionTransform.cs
- ReadOnlyAttribute.cs
- ApplicationContext.cs
- categoryentry.cs
- CompositeFontParser.cs
- DataGridViewCellEventArgs.cs
- TreeViewBindingsEditorForm.cs
- ColumnMapCopier.cs
- InteropExecutor.cs
- SqlProviderManifest.cs
- XmlDeclaration.cs
- CaseCqlBlock.cs
- Camera.cs
- RotationValidation.cs
- FontInfo.cs
- SuppressIldasmAttribute.cs
- CodeDOMUtility.cs
- DoubleStorage.cs
- ThrowHelper.cs
- CancelRequestedRecord.cs
- cookie.cs
- PauseStoryboard.cs
- OneOfTypeConst.cs
- ResourcePool.cs
- CqlLexer.cs
- LineMetrics.cs
- GridViewDeleteEventArgs.cs
- CmsUtils.cs
- TextBoxBase.cs
- StreamUpdate.cs
- ScrollBarRenderer.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- ContentElement.cs
- CookieProtection.cs
- FaultCallbackWrapper.cs
- ProxyAssemblyNotLoadedException.cs
- Helper.cs
- SqlNotificationEventArgs.cs
- ThaiBuddhistCalendar.cs
- SettingsPropertyWrongTypeException.cs
- DefaultAuthorizationContext.cs
- XmlSerializerVersionAttribute.cs
- HttpContextWrapper.cs
- EventlogProvider.cs
- DocumentViewer.cs
- AdornedElementPlaceholder.cs
- EventEntry.cs
- DirectoryNotFoundException.cs
- ThreadExceptionDialog.cs
- DependencyObjectProvider.cs
- LookupBindingPropertiesAttribute.cs
- WebPartDeleteVerb.cs
- CanonicalXml.cs
- AssemblySettingAttributes.cs
- DataRowView.cs
- BehaviorEditorPart.cs
- WhitespaceRuleReader.cs
- XmlSchemaParticle.cs
- DbConnectionStringBuilder.cs
- RadioButtonRenderer.cs
- ListInitExpression.cs
- CodeDelegateCreateExpression.cs
- BufferedWebEventProvider.cs
- FontStyles.cs
- Win32Interop.cs
- OSEnvironmentHelper.cs
- ClientSponsor.cs
- SimpleWebHandlerParser.cs
- MatrixIndependentAnimationStorage.cs
- PropertyToken.cs
- StringReader.cs
- UrlMapping.cs
- Win32.cs
- SQLSingle.cs
- FieldValue.cs
- AsyncCompletedEventArgs.cs
- NavigationCommands.cs
- TextLineResult.cs