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
- RecoverInstanceLocksCommand.cs
- baseaxisquery.cs
- Token.cs
- PerCallInstanceContextProvider.cs
- IfElseDesigner.xaml.cs
- ExpressionDumper.cs
- AnimatedTypeHelpers.cs
- RegexCompilationInfo.cs
- metadatamappinghashervisitor.cs
- RequestCache.cs
- TextRangeEditLists.cs
- DiscreteKeyFrames.cs
- FixedSOMElement.cs
- SecurityNegotiationException.cs
- ConfigXmlElement.cs
- ClientCultureInfo.cs
- SqlFunctionAttribute.cs
- UnsafeNativeMethods.cs
- HMACMD5.cs
- PolygonHotSpot.cs
- SectionUpdates.cs
- WCFServiceClientProxyGenerator.cs
- CharUnicodeInfo.cs
- CharEnumerator.cs
- AmbientLight.cs
- KoreanLunisolarCalendar.cs
- TypeResolver.cs
- ReadOnlyHierarchicalDataSource.cs
- DocumentXPathNavigator.cs
- ToolStripPanelRow.cs
- RequestCachePolicy.cs
- MultitargetingHelpers.cs
- MatrixCamera.cs
- CharacterHit.cs
- SingletonInstanceContextProvider.cs
- ProfileInfo.cs
- XmlHierarchicalEnumerable.cs
- XPathScanner.cs
- DocumentApplicationJournalEntryEventArgs.cs
- SoapRpcServiceAttribute.cs
- IdentifierService.cs
- PagerStyle.cs
- PathFigureCollection.cs
- Trace.cs
- ToolStripControlHost.cs
- ThreadInterruptedException.cs
- EntitySqlQueryState.cs
- XamlBrushSerializer.cs
- InstanceKey.cs
- UshortList2.cs
- TargetParameterCountException.cs
- PropertyGrid.cs
- RowBinding.cs
- GeometryDrawing.cs
- RelatedCurrencyManager.cs
- DefaultPrintController.cs
- CleanUpVirtualizedItemEventArgs.cs
- CancellationHandler.cs
- TextEndOfParagraph.cs
- WindowShowOrOpenTracker.cs
- VisualBrush.cs
- LeftCellWrapper.cs
- ISAPIRuntime.cs
- Executor.cs
- CmsInterop.cs
- safesecurityhelperavalon.cs
- PointCollectionValueSerializer.cs
- EntityConnectionStringBuilderItem.cs
- SamlConditions.cs
- SqlClientFactory.cs
- QilFactory.cs
- HWStack.cs
- ObjectDataSourceMethodEditor.cs
- ResourceDisplayNameAttribute.cs
- FaultBookmark.cs
- ComponentEditorForm.cs
- Variable.cs
- DataService.cs
- ImageMapEventArgs.cs
- IImplicitResourceProvider.cs
- CheckBoxBaseAdapter.cs
- Point.cs
- CommandID.cs
- RootBuilder.cs
- XmlHierarchyData.cs
- Message.cs
- ResolvedKeyFrameEntry.cs
- StylusOverProperty.cs
- ADRoleFactory.cs
- DbProviderConfigurationHandler.cs
- ToggleProviderWrapper.cs
- DataColumnChangeEvent.cs
- HighlightVisual.cs
- xmlformatgeneratorstatics.cs
- DecoderNLS.cs
- DrawingVisual.cs
- TraceRecords.cs
- RightsManagementInformation.cs
- TraceInternal.cs
- ComboBoxItem.cs