Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- PartialTrustVisibleAssembly.cs
- PathGeometry.cs
- XmlSerializerNamespaces.cs
- StateDesigner.cs
- SR.cs
- FindCriteriaElement.cs
- Themes.cs
- ActiveXContainer.cs
- KeysConverter.cs
- ReceiveMessageRecord.cs
- BinaryMethodMessage.cs
- BamlTreeMap.cs
- TypeInfo.cs
- ProcessHostConfigUtils.cs
- SnapshotChangeTrackingStrategy.cs
- RequestNavigateEventArgs.cs
- ColumnWidthChangedEvent.cs
- XmlWriterSettings.cs
- CompositionTarget.cs
- WarningException.cs
- SimpleHandlerFactory.cs
- ColorInterpolationModeValidation.cs
- URLAttribute.cs
- ToolBar.cs
- MimeTypeAttribute.cs
- Canvas.cs
- WorkflowPersistenceService.cs
- TCPListener.cs
- EFAssociationProvider.cs
- propertyentry.cs
- PropertyChangeTracker.cs
- DataGridViewSelectedCellCollection.cs
- OracleSqlParser.cs
- WbemException.cs
- AccessControlEntry.cs
- PopOutPanel.cs
- ToolStripSystemRenderer.cs
- BStrWrapper.cs
- PresentationTraceSources.cs
- RegexReplacement.cs
- ChangeBlockUndoRecord.cs
- RangeBaseAutomationPeer.cs
- DataGridTable.cs
- EditingScope.cs
- HttpWriter.cs
- ManipulationInertiaStartingEventArgs.cs
- Paragraph.cs
- Mapping.cs
- TagPrefixAttribute.cs
- TextRangeProviderWrapper.cs
- HttpProcessUtility.cs
- FileDialogCustomPlace.cs
- MouseCaptureWithinProperty.cs
- SizeFConverter.cs
- GenericsInstances.cs
- SafeNativeMethods.cs
- DoubleLinkListEnumerator.cs
- CustomSignedXml.cs
- ConnectionManagementSection.cs
- ByteAnimationBase.cs
- XmlAttributeAttribute.cs
- WindowsEditBoxRange.cs
- DataContractSerializer.cs
- Helpers.cs
- BinaryUtilClasses.cs
- LabelEditEvent.cs
- DBDataPermission.cs
- RecordsAffectedEventArgs.cs
- WindowsGraphics.cs
- EDesignUtil.cs
- BuildProvider.cs
- errorpatternmatcher.cs
- PrePostDescendentsWalker.cs
- DSASignatureFormatter.cs
- ProbeDuplex11AsyncResult.cs
- UnionCqlBlock.cs
- DataSourceCache.cs
- DragEventArgs.cs
- BitSet.cs
- PublishLicense.cs
- LogSwitch.cs
- PointAnimationUsingPath.cs
- FlowLayoutPanel.cs
- SmtpTransport.cs
- _UncName.cs
- ExpandSegment.cs
- TimeoutException.cs
- NullableDecimalMinMaxAggregationOperator.cs
- FigureParaClient.cs
- MailMessage.cs
- RawStylusActions.cs
- DataBoundControlAdapter.cs
- XmlSchemaSimpleTypeList.cs
- ErrorFormatterPage.cs
- CodeSubDirectoriesCollection.cs
- WsatExtendedInformation.cs
- CapabilitiesSection.cs
- EntityContainer.cs
- ErasingStroke.cs
- CommunicationObjectFaultedException.cs