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
- TemplateControlCodeDomTreeGenerator.cs
- Converter.cs
- TransformPatternIdentifiers.cs
- DisposableCollectionWrapper.cs
- FormsAuthenticationModule.cs
- WebPartTracker.cs
- CalendarDataBindingHandler.cs
- InfiniteTimeSpanConverter.cs
- PointConverter.cs
- GetRecipientListRequest.cs
- BaseComponentEditor.cs
- Grant.cs
- mda.cs
- ShaperBuffers.cs
- TypeUnloadedException.cs
- Function.cs
- PermissionSetTriple.cs
- GenericEnumerator.cs
- WebDisplayNameAttribute.cs
- WindowsGraphicsWrapper.cs
- SelectionEditor.cs
- XmlSchemaAppInfo.cs
- HttpClientCertificate.cs
- ComboBox.cs
- PrinterUnitConvert.cs
- CanonicalizationDriver.cs
- IndicFontClient.cs
- Point4DConverter.cs
- WebRequest.cs
- TimelineClockCollection.cs
- FlowDocument.cs
- DebugHandleTracker.cs
- AnnotationComponentChooser.cs
- tooltip.cs
- ActivityCollectionMarkupSerializer.cs
- DocumentPaginator.cs
- EdmToObjectNamespaceMap.cs
- TransformPattern.cs
- Canvas.cs
- WebScriptEnablingElement.cs
- ModuleBuilderData.cs
- DecoderFallbackWithFailureFlag.cs
- SqlMethodTransformer.cs
- AstTree.cs
- InternalConfigRoot.cs
- WebConfigurationHostFileChange.cs
- SqlProvider.cs
- basemetadatamappingvisitor.cs
- CryptoApi.cs
- InternalTypeHelper.cs
- DataGrid.cs
- CollectionViewProxy.cs
- DBCSCodePageEncoding.cs
- RadioButtonStandardAdapter.cs
- ping.cs
- ItemDragEvent.cs
- MethodImplAttribute.cs
- Serializer.cs
- TableLayoutColumnStyleCollection.cs
- CodeTypeReferenceExpression.cs
- ExtendedPropertyCollection.cs
- Window.cs
- DispatcherHookEventArgs.cs
- SiteMapProvider.cs
- TitleStyle.cs
- MediaPlayer.cs
- AuthenticatedStream.cs
- ListViewItemEventArgs.cs
- CounterSample.cs
- ProviderException.cs
- DataGridViewUtilities.cs
- ContextMenuAutomationPeer.cs
- KeyValueConfigurationElement.cs
- CatalogZoneBase.cs
- RequestValidator.cs
- PropertyTabChangedEvent.cs
- SerialStream.cs
- MouseGestureConverter.cs
- Propagator.Evaluator.cs
- FileChangesMonitor.cs
- Stacktrace.cs
- SwitchAttribute.cs
- PieceDirectory.cs
- CacheManager.cs
- TextRangeBase.cs
- PropertyRef.cs
- PackageDigitalSignature.cs
- CollectionView.cs
- DbMetaDataFactory.cs
- CacheDict.cs
- Internal.cs
- CatalogPart.cs
- Blend.cs
- NotificationContext.cs
- CommandDevice.cs
- ColumnMapVisitor.cs
- DictionaryItemsCollection.cs
- Lasso.cs
- ReadOnlyObservableCollection.cs
- FlowDocumentReaderAutomationPeer.cs