Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- BaseTemplateParser.cs
- BaseCAMarshaler.cs
- VsPropertyGrid.cs
- FunctionGenerator.cs
- WinEventTracker.cs
- MethodBuilderInstantiation.cs
- SafeRegistryHandle.cs
- WizardForm.cs
- TemplateBindingExtensionConverter.cs
- RectangleGeometry.cs
- _HelperAsyncResults.cs
- EmptyReadOnlyDictionaryInternal.cs
- OutputCacheSettings.cs
- TreeNodeBinding.cs
- AffineTransform3D.cs
- ForEach.cs
- SchemaImporterExtensionsSection.cs
- OleDbPropertySetGuid.cs
- X509Utils.cs
- lengthconverter.cs
- AccessKeyManager.cs
- VScrollProperties.cs
- RelatedCurrencyManager.cs
- TimeStampChecker.cs
- WindowAutomationPeer.cs
- FontFaceLayoutInfo.cs
- Mutex.cs
- ContainerParagraph.cs
- EncodingNLS.cs
- FontCollection.cs
- IdentityModelStringsVersion1.cs
- ComEventsSink.cs
- DirtyTextRange.cs
- ErrorWebPart.cs
- HitTestFilterBehavior.cs
- WebPartMenuStyle.cs
- BitmapEffectGroup.cs
- IntSecurity.cs
- COM2FontConverter.cs
- InvokeHandlers.cs
- HtmlUtf8RawTextWriter.cs
- ManagedFilter.cs
- XmlCharCheckingReader.cs
- CategoryAttribute.cs
- MultiTrigger.cs
- GuidConverter.cs
- FastEncoderWindow.cs
- ProbeMatchesMessage11.cs
- PointConverter.cs
- CodeAttributeDeclaration.cs
- WebControlParameterProxy.cs
- UpdateTranslator.cs
- SelectionRange.cs
- SqlProviderUtilities.cs
- SQLSingleStorage.cs
- Stylesheet.cs
- DPCustomTypeDescriptor.cs
- TextLine.cs
- WebRequest.cs
- PasswordBoxAutomationPeer.cs
- IgnoreSectionHandler.cs
- RegistrySecurity.cs
- WebPartExportVerb.cs
- CopyNodeSetAction.cs
- CacheChildrenQuery.cs
- ArraySegment.cs
- XmlByteStreamReader.cs
- PassportAuthentication.cs
- HttpClientCertificate.cs
- ParameterCollection.cs
- QueryReaderSettings.cs
- TrackBarRenderer.cs
- WebException.cs
- XmlSchemas.cs
- DeviceContext2.cs
- TreeBuilderXamlTranslator.cs
- SerializationInfoEnumerator.cs
- WasHttpModulesInstallComponent.cs
- DebugControllerThread.cs
- LinkedResource.cs
- QueryOperationResponseOfT.cs
- DrawingBrush.cs
- TCPListener.cs
- PopOutPanel.cs
- DataGridTextBoxColumn.cs
- HttpListenerContext.cs
- TransformPatternIdentifiers.cs
- PagesSection.cs
- HandledEventArgs.cs
- XmlComplianceUtil.cs
- RegexRunnerFactory.cs
- RegexCaptureCollection.cs
- SafeNativeMethods.cs
- RuleProcessor.cs
- XmlHierarchyData.cs
- XXXOnTypeBuilderInstantiation.cs
- ParenthesizePropertyNameAttribute.cs
- NameObjectCollectionBase.cs
- OledbConnectionStringbuilder.cs
- Tuple.cs