Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- CalendarDateChangedEventArgs.cs
- LinearQuaternionKeyFrame.cs
- TextOutput.cs
- ListItemCollection.cs
- EpmTargetPathSegment.cs
- Base64Decoder.cs
- DomainUpDown.cs
- XmlQueryContext.cs
- CheckBoxList.cs
- WebZone.cs
- TypeBuilder.cs
- DataControlCommands.cs
- RuleSetDialog.cs
- WindowsToolbar.cs
- Vector3DCollection.cs
- TaskHelper.cs
- TerminatorSinks.cs
- Serializer.cs
- SHA1Managed.cs
- CodeConstructor.cs
- XsltLibrary.cs
- InteropExecutor.cs
- TranslateTransform.cs
- XPathNodeHelper.cs
- SR.Designer.cs
- TablePattern.cs
- CodeConditionStatement.cs
- InlineUIContainer.cs
- SqlWriter.cs
- FormViewDeletedEventArgs.cs
- FormViewDeleteEventArgs.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- HorizontalAlignConverter.cs
- PrintDialog.cs
- WpfMemberInvoker.cs
- BoundColumn.cs
- DtrList.cs
- SecureStringHasher.cs
- ForeignKeyConstraint.cs
- WsatTransactionHeader.cs
- CryptoStream.cs
- RegexRunnerFactory.cs
- DataRowView.cs
- WpfKnownTypeInvoker.cs
- NumericPagerField.cs
- IisTraceListener.cs
- TextTreeText.cs
- ParameterBuilder.cs
- DataGridViewTextBoxEditingControl.cs
- StorageConditionPropertyMapping.cs
- XPathAncestorIterator.cs
- PenContext.cs
- TextStore.cs
- DataContractJsonSerializer.cs
- WinFormsSpinner.cs
- precedingsibling.cs
- DescendantOverDescendantQuery.cs
- TCPListener.cs
- Int32.cs
- WebPart.cs
- DrawingVisualDrawingContext.cs
- Model3D.cs
- CompilationUnit.cs
- DataError.cs
- ServiceOperationListItem.cs
- SessionStateContainer.cs
- ErasingStroke.cs
- RubberbandSelector.cs
- CategoryGridEntry.cs
- StringHandle.cs
- IListConverters.cs
- UnsafeNativeMethods.cs
- EntityExpressionVisitor.cs
- QuaternionValueSerializer.cs
- EdmSchemaAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- PhysicalFontFamily.cs
- WindowsFont.cs
- FrameworkElementFactoryMarkupObject.cs
- CanonicalXml.cs
- ProviderManager.cs
- JsonGlobals.cs
- TextParaLineResult.cs
- IntPtr.cs
- BufferModesCollection.cs
- FacetDescriptionElement.cs
- NodeInfo.cs
- BuildProviderAppliesToAttribute.cs
- Keyboard.cs
- MessageSmuggler.cs
- ReflectionTypeLoadException.cs
- SafeBuffer.cs
- EnvironmentPermission.cs
- EventMetadata.cs
- DropSource.cs
- DiscoveryClientDuplexChannel.cs
- CodeMemberProperty.cs
- DependentTransaction.cs
- Point3DAnimation.cs
- ServicesUtilities.cs