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)
5
using ICSharpCode.SharpDevelop.Dom;
6
using Microsoft.Scripting;
8
namespace ICSharpCode.PythonBinding
10
public class PythonProperty : DefaultProperty
12
public PythonProperty(IClass declaringType, string name, SourceLocation location)
13
: base(declaringType, name)
15
GetPropertyRegion(location);
16
declaringType.Properties.Add(this);
19
void GetPropertyRegion(SourceLocation location)
21
int line = location.Line;
22
int column = location.Column;
23
Region = new DomRegion(line, column, line, column);