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
- NodeInfo.cs
- CircleHotSpot.cs
- TrustManagerPromptUI.cs
- EventMetadata.cs
- Paragraph.cs
- InheritablePropertyChangeInfo.cs
- DescriptionAttribute.cs
- CodeExpressionStatement.cs
- ConfigPathUtility.cs
- RelationshipDetailsRow.cs
- TextElement.cs
- DebugView.cs
- DynamicResourceExtensionConverter.cs
- XamlBrushSerializer.cs
- DiscreteKeyFrames.cs
- _NtlmClient.cs
- RuntimeCompatibilityAttribute.cs
- DispatcherProcessingDisabled.cs
- PropertyGridView.cs
- WebBrowserPermission.cs
- PersonalizationState.cs
- Directory.cs
- AsyncDataRequest.cs
- TypeSystem.cs
- designeractionlistschangedeventargs.cs
- WindowsContainer.cs
- ResourceIDHelper.cs
- CalculatedColumn.cs
- SecurityManager.cs
- WindowsTreeView.cs
- Action.cs
- HotSpot.cs
- SchemaTableColumn.cs
- SchemaTableOptionalColumn.cs
- MetricEntry.cs
- XmlNodeList.cs
- EUCJPEncoding.cs
- Accessors.cs
- DesignTimeTemplateParser.cs
- graph.cs
- RetriableClipboard.cs
- SapiAttributeParser.cs
- MD5.cs
- TransactionOptions.cs
- SelectionProcessor.cs
- NativeMethods.cs
- SchemaNames.cs
- StylusPointDescription.cs
- MatrixValueSerializer.cs
- TypeSchema.cs
- ComContractElementCollection.cs
- SizeChangedEventArgs.cs
- UnionExpr.cs
- XmlObjectSerializer.cs
- VBIdentifierDesigner.xaml.cs
- WebException.cs
- DropShadowEffect.cs
- DataSourceHelper.cs
- CorePropertiesFilter.cs
- HtmlInputButton.cs
- DataServiceException.cs
- BooleanFacetDescriptionElement.cs
- MenuTracker.cs
- WorkflowOperationAsyncResult.cs
- CursorInteropHelper.cs
- ModuleBuilderData.cs
- EntityViewGenerationConstants.cs
- PrimaryKeyTypeConverter.cs
- StatusBarDrawItemEvent.cs
- XslCompiledTransform.cs
- Int64AnimationUsingKeyFrames.cs
- DbTransaction.cs
- ListenerElementsCollection.cs
- FontFaceLayoutInfo.cs
- ToolboxComponentsCreatingEventArgs.cs
- DataGridViewHitTestInfo.cs
- GridViewEditEventArgs.cs
- BrowserCapabilitiesFactoryBase.cs
- ParameterSubsegment.cs
- EncoderParameters.cs
- StrongTypingException.cs
- DataPagerCommandEventArgs.cs
- FileChangeNotifier.cs
- AttributeEmitter.cs
- ColumnPropertiesGroup.cs
- CmsUtils.cs
- ListBase.cs
- FixedPageProcessor.cs
- DataErrorValidationRule.cs
- SynchronizedDispatch.cs
- CollectionConverter.cs
- DataRecordInfo.cs
- ToolStripGripRenderEventArgs.cs
- ForeignKeyConstraint.cs
- TransformerInfoCollection.cs
- MDIClient.cs
- PrintController.cs
- CornerRadiusConverter.cs
- CodeAttachEventStatement.cs
- ZoneMembershipCondition.cs