~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/BackendBindings/Python/PythonBinding/Project/Src/PythonProperty.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
 
3
 
 
4
using System;
 
5
using ICSharpCode.SharpDevelop.Dom;
 
6
using Microsoft.Scripting;
 
7
 
 
8
namespace ICSharpCode.PythonBinding
 
9
{
 
10
        public class PythonProperty : DefaultProperty
 
11
        {
 
12
                public PythonProperty(IClass declaringType, string name, SourceLocation location)
 
13
                        : base(declaringType, name)
 
14
                {
 
15
                        GetPropertyRegion(location);
 
16
                        declaringType.Properties.Add(this);
 
17
                }
 
18
                
 
19
                void GetPropertyRegion(SourceLocation location)
 
20
                {
 
21
                        int line = location.Line;
 
22
                        int column = location.Column;
 
23
                        Region = new DomRegion(line, column, line, column);
 
24
                }
 
25
        }
 
26
}