Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / FunctionDefinition.cs / 1305376 / FunctionDefinition.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql.AST { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; ////// Represents an ast node for an inline function definition. /// internal sealed class FunctionDefinition : Node { private readonly Identifier _name; private readonly NodeList_paramDefList; private readonly Node _body; private readonly int _startPosition; private readonly int _endPosition; /// /// Initializes function definition using the name, the optional argument definitions and the body expression. /// internal FunctionDefinition(Identifier name, NodeListargDefList, Node body, int startPosition, int endPosition) { this._name = name; this._paramDefList = argDefList; this._body = body; this._startPosition = startPosition; this._endPosition = endPosition; } /// /// Returns function name. /// internal string Name { get { return this._name.Name; } } ////// Returns optional parameter definition list. May be null. /// internal NodeListParameters { get { return this._paramDefList; } } /// /// Returns function body. /// internal Node Body { get { return this._body; } } ////// Returns start position of the function definition in the command text. /// internal int StartPosition { get { return this._startPosition; } } ////// Returns end position of the function definition in the command text. /// internal int EndPosition { get { return this._endPosition; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql.AST { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; ////// Represents an ast node for an inline function definition. /// internal sealed class FunctionDefinition : Node { private readonly Identifier _name; private readonly NodeList_paramDefList; private readonly Node _body; private readonly int _startPosition; private readonly int _endPosition; /// /// Initializes function definition using the name, the optional argument definitions and the body expression. /// internal FunctionDefinition(Identifier name, NodeListargDefList, Node body, int startPosition, int endPosition) { this._name = name; this._paramDefList = argDefList; this._body = body; this._startPosition = startPosition; this._endPosition = endPosition; } /// /// Returns function name. /// internal string Name { get { return this._name.Name; } } ////// Returns optional parameter definition list. May be null. /// internal NodeListParameters { get { return this._paramDefList; } } /// /// Returns function body. /// internal Node Body { get { return this._body; } } ////// Returns start position of the function definition in the command text. /// internal int StartPosition { get { return this._startPosition; } } ////// Returns end position of the function definition in the command text. /// internal int EndPosition { get { return this._endPosition; } } } } // 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
- FlowDocumentPageViewerAutomationPeer.cs
- ResXResourceReader.cs
- TimeManager.cs
- NeutralResourcesLanguageAttribute.cs
- streamingZipPartStream.cs
- Matrix.cs
- documentation.cs
- TypedAsyncResult.cs
- CodeAccessPermission.cs
- ConnectorSelectionGlyph.cs
- FileLoadException.cs
- XomlCompiler.cs
- ObjectTokenCategory.cs
- Page.cs
- ObjectDataSourceEventArgs.cs
- DataGridItemAttachedStorage.cs
- LogFlushAsyncResult.cs
- ProcessManager.cs
- StickyNoteAnnotations.cs
- HostUtils.cs
- MetadataAssemblyHelper.cs
- GuidConverter.cs
- XhtmlStyleClass.cs
- BigInt.cs
- FormViewUpdatedEventArgs.cs
- WindowsListViewItemCheckBox.cs
- infer.cs
- FilteredXmlReader.cs
- SoapDocumentServiceAttribute.cs
- RoleManagerEventArgs.cs
- TableRowGroup.cs
- EntitySetBase.cs
- ProbeDuplexCD1AsyncResult.cs
- CodeIdentifiers.cs
- StorageInfo.cs
- CustomValidator.cs
- LayoutSettings.cs
- XmlSchemaDocumentation.cs
- Int32KeyFrameCollection.cs
- DataGridViewColumnHeaderCell.cs
- Emitter.cs
- ProgressChangedEventArgs.cs
- ServiceControllerDesigner.cs
- ServerReliableChannelBinder.cs
- ResourceProviderFactory.cs
- WebHttpBinding.cs
- ResourceWriter.cs
- LinqDataSourceValidationException.cs
- TextProperties.cs
- IncrementalHitTester.cs
- ExportOptions.cs
- __FastResourceComparer.cs
- ParameterToken.cs
- PropertyEmitterBase.cs
- AccessedThroughPropertyAttribute.cs
- WebUtil.cs
- DrawListViewColumnHeaderEventArgs.cs
- FormatterServices.cs
- ToolStripSystemRenderer.cs
- XslAst.cs
- AutomationPatternInfo.cs
- ClientSettingsProvider.cs
- Slider.cs
- XmlSchemaObjectTable.cs
- SystemParameters.cs
- XmlText.cs
- ClientBase.cs
- XhtmlConformanceSection.cs
- TextBoxBase.cs
- GatewayDefinition.cs
- FileDialogPermission.cs
- GridViewDesigner.cs
- WindowsIPAddress.cs
- ArraySegment.cs
- QuaternionAnimationBase.cs
- DeploymentSectionCache.cs
- ControlValuePropertyAttribute.cs
- SchemaType.cs
- CacheAxisQuery.cs
- StorageMappingItemCollection.cs
- TypeReference.cs
- SQLMoneyStorage.cs
- NumericUpDownAccelerationCollection.cs
- CodeNamespaceCollection.cs
- DeclaredTypeValidator.cs
- DataContext.cs
- SqlDependencyUtils.cs
- ADConnectionHelper.cs
- NonNullItemCollection.cs
- Queue.cs
- StylusPointPropertyInfo.cs
- GridViewColumnHeaderAutomationPeer.cs
- SqlError.cs
- ReadOnlyHierarchicalDataSourceView.cs
- PatternMatcher.cs
- Block.cs
- PointAnimation.cs
- JoinSymbol.cs
- NativeMethods.cs
- RunWorkerCompletedEventArgs.cs