Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AstNode.cs / 1 / AstNode.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; ////// Represents the astnode error context. /// internal class ErrorContext { ////// represents the start position of the ast node element in the input stream /// internal int InputPosition = -1; ////// represents the additional/contextual information related to the ast node /// internal string ErrorContextInfo; ////// defines how ErrorContextInfo should be interpreted /// internal bool UseContextInfoAsResourceIdentifier = true; ////// represents a referece to the original input query text /// internal string QueryText; } ////// Represents base class for nodes in the Abstract Syntax Tree /// internal abstract class AstNode { private ErrorContext _errCtx = new ErrorContext(); internal AstNode() { } internal AstNode( string query, int inputPosition ) { _errCtx.QueryText = query; _errCtx.InputPosition = inputPosition; } ////// Returns the AstNode error context. /// internal ErrorContext ErrCtx { get { return _errCtx; } set { _errCtx = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; ////// Represents the astnode error context. /// internal class ErrorContext { ////// represents the start position of the ast node element in the input stream /// internal int InputPosition = -1; ////// represents the additional/contextual information related to the ast node /// internal string ErrorContextInfo; ////// defines how ErrorContextInfo should be interpreted /// internal bool UseContextInfoAsResourceIdentifier = true; ////// represents a referece to the original input query text /// internal string QueryText; } ////// Represents base class for nodes in the Abstract Syntax Tree /// internal abstract class AstNode { private ErrorContext _errCtx = new ErrorContext(); internal AstNode() { } internal AstNode( string query, int inputPosition ) { _errCtx.QueryText = query; _errCtx.InputPosition = inputPosition; } ////// Returns the AstNode error context. /// internal ErrorContext ErrCtx { get { return _errCtx; } set { _errCtx = value; } } } } // 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
- VirtualPath.cs
- DesignerForm.cs
- AsnEncodedData.cs
- Instrumentation.cs
- InputEventArgs.cs
- OdbcConnectionPoolProviderInfo.cs
- Queue.cs
- CellLabel.cs
- StylusPointDescription.cs
- DateTimeFormat.cs
- AxImporter.cs
- LineVisual.cs
- followingquery.cs
- RtfFormatStack.cs
- OutOfProcStateClientManager.cs
- OrderablePartitioner.cs
- CollectionViewProxy.cs
- DataGridViewComboBoxColumn.cs
- PerformanceCounterPermission.cs
- AstTree.cs
- EventSourceCreationData.cs
- AttachedProperty.cs
- UnsafeNativeMethods.cs
- PenThreadPool.cs
- SecurityCriticalDataForSet.cs
- UrlMappingsModule.cs
- ProviderUtil.cs
- CroppedBitmap.cs
- ManagementObject.cs
- DoWorkEventArgs.cs
- ProviderBase.cs
- SqlFileStream.cs
- ToolboxComponentsCreatedEventArgs.cs
- PolygonHotSpot.cs
- WindowsFormsSectionHandler.cs
- WebPartDescriptionCollection.cs
- ReaderOutput.cs
- ComponentResourceKeyConverter.cs
- SystemIcmpV6Statistics.cs
- DispatcherOperation.cs
- RecordsAffectedEventArgs.cs
- TabControl.cs
- SingleAnimationUsingKeyFrames.cs
- SqlWebEventProvider.cs
- StringStorage.cs
- CmsUtils.cs
- TextUtf8RawTextWriter.cs
- WebConfigurationHostFileChange.cs
- ToolBarOverflowPanel.cs
- CollectionChangedEventManager.cs
- CodePrimitiveExpression.cs
- AppearanceEditorPart.cs
- PointAnimationClockResource.cs
- PageRanges.cs
- SchemaTableColumn.cs
- Timer.cs
- ToolBarButton.cs
- TableNameAttribute.cs
- SiteMap.cs
- PenThread.cs
- IpcChannelHelper.cs
- PrimitiveDataContract.cs
- QueryableFilterRepeater.cs
- ObsoleteAttribute.cs
- ApplicationGesture.cs
- RegionData.cs
- HelpEvent.cs
- VideoDrawing.cs
- Currency.cs
- HtmlForm.cs
- contentDescriptor.cs
- ImageSourceConverter.cs
- IPHostEntry.cs
- EditorBrowsableAttribute.cs
- SystemIcons.cs
- CustomCredentialPolicy.cs
- ApplicationActivator.cs
- PersonalizableTypeEntry.cs
- DirectoryInfo.cs
- WebConfigurationHost.cs
- Enum.cs
- HttpWebRequestElement.cs
- EntityUtil.cs
- WebControlToolBoxItem.cs
- PersonalizableAttribute.cs
- DataView.cs
- WindowHideOrCloseTracker.cs
- ConditionalAttribute.cs
- StructuredTypeInfo.cs
- BamlRecords.cs
- PanelStyle.cs
- WebPartMinimizeVerb.cs
- ProcessModelSection.cs
- Helper.cs
- GenericTypeParameterConverter.cs
- UrlAuthFailedErrorFormatter.cs
- XmlSchemaAny.cs
- DrawingState.cs
- Vars.cs
- RSAPKCS1SignatureDeformatter.cs