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
- QuotedPrintableStream.cs
- Operand.cs
- querybuilder.cs
- XmlUtil.cs
- SchemaImporterExtensionsSection.cs
- RoleGroup.cs
- IODescriptionAttribute.cs
- HandledMouseEvent.cs
- __ComObject.cs
- TrackingProfileCache.cs
- RestHandlerFactory.cs
- PrtCap_Public.cs
- DummyDataSource.cs
- TextTabProperties.cs
- DocumentPageTextView.cs
- ValidatorCollection.cs
- RoleGroupCollection.cs
- ViewCellRelation.cs
- CacheAxisQuery.cs
- TemplateParser.cs
- LexicalChunk.cs
- hresults.cs
- DesignerCategoryAttribute.cs
- MultiBinding.cs
- DynamicILGenerator.cs
- EditBehavior.cs
- FrameSecurityDescriptor.cs
- TypeCollectionPropertyEditor.cs
- HitTestParameters.cs
- ZeroOpNode.cs
- StrokeNodeOperations2.cs
- XmlSchemaComplexContentExtension.cs
- SqlClientWrapperSmiStreamChars.cs
- DoubleIndependentAnimationStorage.cs
- InkCanvasAutomationPeer.cs
- WindowsButton.cs
- XhtmlBasicValidationSummaryAdapter.cs
- EventHandlingScope.cs
- CodeCommentStatementCollection.cs
- SmiTypedGetterSetter.cs
- ChameleonKey.cs
- BaseDataList.cs
- SendMailErrorEventArgs.cs
- TypeDescriptor.cs
- EntitySetBaseCollection.cs
- SingleAnimationBase.cs
- DataServiceKeyAttribute.cs
- Color.cs
- DateTimeSerializationSection.cs
- SetStateEventArgs.cs
- OleDbInfoMessageEvent.cs
- ToolStripPanel.cs
- XmlSchemaAnnotation.cs
- ListViewGroupConverter.cs
- figurelengthconverter.cs
- PagedDataSource.cs
- WorkflowDebuggerSteppingAttribute.cs
- TargetException.cs
- JavaScriptString.cs
- XmlTextReaderImplHelpers.cs
- Image.cs
- DbDeleteCommandTree.cs
- ToolStripItemGlyph.cs
- SqlCacheDependencyDatabaseCollection.cs
- MiniParameterInfo.cs
- AssemblyAssociatedContentFileAttribute.cs
- SqlEnums.cs
- LocalValueEnumerator.cs
- SmtpNetworkElement.cs
- MobileListItem.cs
- QueryAsyncResult.cs
- Merger.cs
- PropertyChangedEventArgs.cs
- QilName.cs
- IPHostEntry.cs
- MsmqDecodeHelper.cs
- EdmSchemaAttribute.cs
- WebPartDescription.cs
- ReadOnlyDataSourceView.cs
- PermissionRequestEvidence.cs
- DataTableMappingCollection.cs
- TextEffectResolver.cs
- GregorianCalendar.cs
- Timer.cs
- SynchronizationContext.cs
- NameSpaceExtractor.cs
- JsonEnumDataContract.cs
- WindowsRebar.cs
- _ProxyChain.cs
- PagesChangedEventArgs.cs
- AssemblyBuilder.cs
- TransactionScopeDesigner.cs
- embossbitmapeffect.cs
- DtcInterfaces.cs
- DiagnosticTrace.cs
- WsatAdminException.cs
- XmlTypeMapping.cs
- MetadataItemSerializer.cs
- OpCopier.cs
- TreeChangeInfo.cs