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
- SQLBytesStorage.cs
- FixedDocumentPaginator.cs
- SimplePropertyEntry.cs
- StoragePropertyMapping.cs
- ConfigurationSection.cs
- WbmpConverter.cs
- XmlMapping.cs
- EdmProperty.cs
- SoapElementAttribute.cs
- ISessionStateStore.cs
- ActiveXContainer.cs
- OciEnlistContext.cs
- ActivitySurrogate.cs
- XPathAncestorIterator.cs
- DataGridViewSelectedCellCollection.cs
- RenderOptions.cs
- WebServiceHandlerFactory.cs
- CellParaClient.cs
- StringCollection.cs
- XPathException.cs
- DataGridHeaderBorder.cs
- FilterElement.cs
- PersonalizableTypeEntry.cs
- ReferenceConverter.cs
- Int32KeyFrameCollection.cs
- EdmSchemaAttribute.cs
- MimeFormatter.cs
- Dynamic.cs
- WebSysDisplayNameAttribute.cs
- TagNameToTypeMapper.cs
- AccessText.cs
- PageCache.cs
- HyperLinkField.cs
- Figure.cs
- WhitespaceRuleLookup.cs
- SecurityElement.cs
- CaretElement.cs
- GuidelineCollection.cs
- CodeLinePragma.cs
- DiscreteKeyFrames.cs
- StylusEventArgs.cs
- TimelineClockCollection.cs
- OneOfTypeConst.cs
- RemotingConfigParser.cs
- PageBreakRecord.cs
- CommandValueSerializer.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- SearchExpression.cs
- JsonDataContract.cs
- _ListenerResponseStream.cs
- ArraySegment.cs
- URL.cs
- MostlySingletonList.cs
- EntityContainer.cs
- _AcceptOverlappedAsyncResult.cs
- SchemaElementLookUpTable.cs
- TraceLevelStore.cs
- SimpleLine.cs
- HtmlEncodedRawTextWriter.cs
- ForceCopyBuildProvider.cs
- EasingKeyFrames.cs
- InlineObject.cs
- InternalControlCollection.cs
- HttpHandlerAction.cs
- MultiByteCodec.cs
- HighContrastHelper.cs
- XmlHierarchyData.cs
- LocalIdKeyIdentifierClause.cs
- TextSelectionProcessor.cs
- WindowHideOrCloseTracker.cs
- TagMapInfo.cs
- EncodingInfo.cs
- ActivityCodeDomSerializationManager.cs
- DataShape.cs
- FormsAuthenticationTicket.cs
- DelegatingHeader.cs
- Compiler.cs
- LayoutSettings.cs
- ConnectionProviderAttribute.cs
- RawStylusInputCustomDataList.cs
- EnumerableCollectionView.cs
- RegexCharClass.cs
- DataRowExtensions.cs
- ObjectKeyFrameCollection.cs
- InputLanguageCollection.cs
- ViewPort3D.cs
- LongCountAggregationOperator.cs
- TextCompositionManager.cs
- Image.cs
- FlagsAttribute.cs
- TrackingParameters.cs
- XPathNodeHelper.cs
- WindowsScrollBarBits.cs
- AbsoluteQuery.cs
- SoapExtension.cs
- SqlDataSourceConfigureSelectPanel.cs
- BoundsDrawingContextWalker.cs
- TransportConfigurationTypeElementCollection.cs
- IItemProperties.cs
- CacheAxisQuery.cs