Exemplo n.º 1
0
        internal ContractPublicPropertyNameHighlighing(IFieldDeclaration fieldDeclaration,
                                                       string referingFieldOrPropertyName,
                                                       ICSharpTypeMemberDeclaration referingFieldOrProperty)
        {
            Contract.Requires(fieldDeclaration != null);
            Contract.Requires(referingFieldOrPropertyName != null);

            _range                   = fieldDeclaration.GetHighlightingRange();
            _fieldDeclaration        = fieldDeclaration;
            _referingFieldOrProperty = referingFieldOrProperty;

            FieldName    = fieldDeclaration.NameIdentifier.With(x => x.Name);
            PropertyName = referingFieldOrPropertyName;
            FieldType    = fieldDeclaration.Type.GetLongPresentableName(CSharpLanguage.Instance);
        }
        internal ContractPublicPropertyNameHighlighing(IFieldDeclaration fieldDeclaration, 
            string referingFieldOrPropertyName,
            ICSharpTypeMemberDeclaration referingFieldOrProperty)
        {
            Contract.Requires(fieldDeclaration != null);
            Contract.Requires(referingFieldOrPropertyName != null);

            _range = fieldDeclaration.GetHighlightingRange();
            _fieldDeclaration = fieldDeclaration;
            _referingFieldOrProperty = referingFieldOrProperty;

            FieldName = fieldDeclaration.NameIdentifier.With(x => x.Name);
            PropertyName = referingFieldOrPropertyName;
            FieldType = fieldDeclaration.Type.GetLongPresentableName(CSharpLanguage.Instance);
        }