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
- MexNamedPipeBindingCollectionElement.cs
- MenuCommand.cs
- DbProviderFactories.cs
- LoginName.cs
- SqlDataAdapter.cs
- AutoScrollHelper.cs
- ClientScriptManagerWrapper.cs
- XPathNavigatorKeyComparer.cs
- UIElementPropertyUndoUnit.cs
- BinaryFormatterWriter.cs
- DnsPermission.cs
- EdmItemCollection.OcAssemblyCache.cs
- AppSecurityManager.cs
- MapPathBasedVirtualPathProvider.cs
- IdentityModelStringsVersion1.cs
- DBCSCodePageEncoding.cs
- SqlCommandSet.cs
- DrawListViewSubItemEventArgs.cs
- SqlVersion.cs
- Style.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- Stack.cs
- SqlTypesSchemaImporter.cs
- XmlDataDocument.cs
- DescendentsWalker.cs
- SecureConversationServiceCredential.cs
- MergePropertyDescriptor.cs
- ApplicationDirectoryMembershipCondition.cs
- NotificationContext.cs
- CalendarTable.cs
- TextServicesContext.cs
- DataGridViewRowsAddedEventArgs.cs
- StackSpiller.cs
- GraphicsPath.cs
- WindowClosedEventArgs.cs
- TriggerAction.cs
- Char.cs
- ResourceCodeDomSerializer.cs
- FormattedTextSymbols.cs
- Converter.cs
- MarkupCompilePass1.cs
- DataRowView.cs
- CodeTypeReference.cs
- HttpAsyncResult.cs
- ConfigurationValidatorBase.cs
- SmiEventSink_DeferedProcessing.cs
- TreeViewImageIndexConverter.cs
- EventLogPermission.cs
- SiteMapHierarchicalDataSourceView.cs
- ColorMatrix.cs
- DataGridViewCellValidatingEventArgs.cs
- LinqDataSourceContextEventArgs.cs
- SEHException.cs
- LicenseContext.cs
- WindowsListViewScroll.cs
- CodeAssignStatement.cs
- PartialCachingControl.cs
- ImageMetadata.cs
- FontStyleConverter.cs
- SynchronizedInputPattern.cs
- CollectionEditorDialog.cs
- ResourceReferenceExpression.cs
- Visitor.cs
- PassportPrincipal.cs
- LinearKeyFrames.cs
- DataServiceStreamProviderWrapper.cs
- BaseValidator.cs
- BaseDataListDesigner.cs
- SizeFConverter.cs
- ListMarkerSourceInfo.cs
- FragmentNavigationEventArgs.cs
- CombinedGeometry.cs
- DesignTimeParseData.cs
- EditingCoordinator.cs
- StorageAssociationSetMapping.cs
- ActiveDocumentEvent.cs
- Relationship.cs
- DataGridTextBoxColumn.cs
- FormsAuthenticationTicket.cs
- TemplateField.cs
- LoadedOrUnloadedOperation.cs
- DocumentOrderComparer.cs
- ConstrainedDataObject.cs
- ResponseStream.cs
- XPathEmptyIterator.cs
- OutputCacheSettingsSection.cs
- CommandConverter.cs
- Condition.cs
- RegistrationContext.cs
- HandlerFactoryWrapper.cs
- CqlQuery.cs
- LinqMaximalSubtreeNominator.cs
- CommentEmitter.cs
- BinaryNode.cs
- TypeValidationEventArgs.cs
- SspiSecurityTokenParameters.cs
- SelectionPatternIdentifiers.cs
- QuerySettings.cs
- XPathDocumentIterator.cs
- QueryContinueDragEvent.cs