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
- tooltip.cs
- ListItemConverter.cs
- ImportStoreException.cs
- StaticContext.cs
- RightsManagementEncryptedStream.cs
- GeneralTransform.cs
- ListItemsCollectionEditor.cs
- Pipe.cs
- ToolStripItemEventArgs.cs
- StringToken.cs
- InternalEnumValidatorAttribute.cs
- IsolatedStorageFile.cs
- CompModSwitches.cs
- path.cs
- ObjectDataSourceMethodEventArgs.cs
- Bitmap.cs
- DirtyTextRange.cs
- SymmetricAlgorithm.cs
- HttpWebRequestElement.cs
- SemaphoreSecurity.cs
- cookie.cs
- TimelineCollection.cs
- JsonServiceDocumentSerializer.cs
- MessageDecoder.cs
- NumberSubstitution.cs
- IPPacketInformation.cs
- SolidColorBrush.cs
- FormsAuthenticationUserCollection.cs
- ZipIOModeEnforcingStream.cs
- QuaternionConverter.cs
- ExpressionLexer.cs
- FirstMatchCodeGroup.cs
- AutomationElement.cs
- SecurityCriticalDataForSet.cs
- XPathItem.cs
- ConfigXmlWhitespace.cs
- SerializableTypeCodeDomSerializer.cs
- NavigationProgressEventArgs.cs
- ToolStripGripRenderEventArgs.cs
- HwndHostAutomationPeer.cs
- TypedTableBase.cs
- Duration.cs
- CharEnumerator.cs
- BadImageFormatException.cs
- WebPartEditorApplyVerb.cs
- WindowsBrush.cs
- UpdatePanelTrigger.cs
- CommonGetThemePartSize.cs
- StyleXamlTreeBuilder.cs
- ListParaClient.cs
- CustomErrorCollection.cs
- DataListComponentEditor.cs
- FacetDescriptionElement.cs
- HttpListenerException.cs
- XmlSchemaRedefine.cs
- SequentialUshortCollection.cs
- ComboBox.cs
- ExpressionWriter.cs
- RequestDescription.cs
- ProviderUtil.cs
- UIElementCollection.cs
- Merger.cs
- MenuStrip.cs
- EventBuilder.cs
- MarkerProperties.cs
- EventOpcode.cs
- UnsafeNativeMethods.cs
- RoleService.cs
- HMACSHA1.cs
- RepeaterItem.cs
- IPAddressCollection.cs
- BrowserDefinition.cs
- MonitoringDescriptionAttribute.cs
- ObjectListCommandEventArgs.cs
- OleDbSchemaGuid.cs
- RelatedCurrencyManager.cs
- HttpModuleActionCollection.cs
- PropertyDescriptorGridEntry.cs
- GestureRecognizer.cs
- IndexerNameAttribute.cs
- CompilerResults.cs
- ObjectConverter.cs
- HwndSource.cs
- XmlSchemaAnnotation.cs
- FontUnitConverter.cs
- XPathNodeList.cs
- LockCookie.cs
- QueryExpr.cs
- PageSettings.cs
- DynamicDiscoveryDocument.cs
- XslUrlEditor.cs
- BrowsableAttribute.cs
- CompositeControl.cs
- SymmetricCryptoHandle.cs
- DiscoveryDocumentSearchPattern.cs
- ThemeDictionaryExtension.cs
- InstancePersistenceException.cs
- PersonalizationProviderHelper.cs
- List.cs
- SymbolMethod.cs