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
- DetailsViewPageEventArgs.cs
- AssemblyHash.cs
- NativeObjectSecurity.cs
- LongValidatorAttribute.cs
- AssemblyCacheEntry.cs
- AggregateException.cs
- DragStartedEventArgs.cs
- EditorZoneBase.cs
- CustomErrorsSection.cs
- CommonGetThemePartSize.cs
- SuspendDesigner.cs
- HttpModuleCollection.cs
- SimpleFieldTemplateUserControl.cs
- BadImageFormatException.cs
- WindowsIdentity.cs
- ToolStripSeparator.cs
- precedingsibling.cs
- ManageRequest.cs
- ProxyElement.cs
- ExpressionCopier.cs
- TypeReference.cs
- StyleTypedPropertyAttribute.cs
- HwndAppCommandInputProvider.cs
- InvokeBase.cs
- newinstructionaction.cs
- SelectorAutomationPeer.cs
- TrustSection.cs
- ScrollItemProviderWrapper.cs
- IdSpace.cs
- SystemInformation.cs
- BindingWorker.cs
- RequestCachingSection.cs
- MultiAsyncResult.cs
- Enum.cs
- DescendantQuery.cs
- linebase.cs
- EntityViewContainer.cs
- PropertyFilterAttribute.cs
- __ConsoleStream.cs
- FocusChangedEventArgs.cs
- DiscoveryDocumentLinksPattern.cs
- ValueTypeFixupInfo.cs
- SiteMapNodeCollection.cs
- XmlCharType.cs
- ISCIIEncoding.cs
- Polyline.cs
- RectangleF.cs
- ToggleProviderWrapper.cs
- PriorityQueue.cs
- Header.cs
- CodeIdentifiers.cs
- TableLayoutPanel.cs
- Vector3DAnimationUsingKeyFrames.cs
- RepeaterItemEventArgs.cs
- ExtensionQuery.cs
- RowBinding.cs
- HtmlTernaryTree.cs
- DependencyPropertyAttribute.cs
- DataGridViewLinkCell.cs
- Action.cs
- TimeZoneNotFoundException.cs
- LinkConverter.cs
- CaseStatementSlot.cs
- InternalCache.cs
- MutableAssemblyCacheEntry.cs
- CqlParser.cs
- WorkflowItemsPresenter.cs
- AppDomainAttributes.cs
- EventListener.cs
- FromReply.cs
- ComboBoxRenderer.cs
- _AutoWebProxyScriptWrapper.cs
- TrackingMemoryStream.cs
- DateTimeParse.cs
- HtmlShim.cs
- UnsafeNativeMethods.cs
- UIPermission.cs
- DBSqlParserColumnCollection.cs
- figurelength.cs
- AutomationAttributeInfo.cs
- ProxyWebPartManagerDesigner.cs
- SqlDuplicator.cs
- PkcsMisc.cs
- httpapplicationstate.cs
- SelectionChangedEventArgs.cs
- StringWriter.cs
- DataGridColumn.cs
- TraceData.cs
- BooleanAnimationBase.cs
- ListViewSelectEventArgs.cs
- UrlRoutingModule.cs
- SocketInformation.cs
- TextRangeEditTables.cs
- DateTime.cs
- NavigationCommands.cs
- BinaryFormatterWriter.cs
- CultureTable.cs
- XmlSchemaComplexType.cs
- PersistenceMetadataNamespace.cs
- bidPrivateBase.cs