aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration/ICodeObject.cs
blob: 04423581314d440b86a11f0d9bc3f5c7e3febb6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.CodeGeneration
{
    /// <summary>
    /// Represents a code object.
    /// </summary>
    public interface ICodeObject
    {
        /// <summary>
        /// Generates the code represented by this code object.
        /// </summary>
        String GenerateCode();

        /// <summary>
        /// Gets the template associated with this code object.
        /// </summary>
        String GetTemplate();
    }
}
tributed under the GNU LGPL (for details please see \doc\license.txt) using System; using Tango.Scripting.Editors.Utils; namespace Tango.Scripting.Editors.Rendering { /// <summary> /// Contains weak event managers for the TextView events. /// </summary> public static class TextViewWeakEventManager { /// <summary> /// Weak event manager for the <see cref="TextView.DocumentChanged"/> event. /// </summary> [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")] public sealed class DocumentChanged : WeakEventManagerBase<DocumentChanged, TextView> { /// <inheritdoc/> protected override void StartListening(TextView source) { source.DocumentChanged += DeliverEvent; } /// <inheritdoc/> protected override void StopListening(TextView source) { source.DocumentChanged -= DeliverEvent; } } /// <summary> /// Weak event manager for the <see cref="TextView.VisualLinesChanged"/> event. /// </summary> [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")] public sealed class VisualLinesChanged : WeakEventManagerBase<VisualLinesChanged, TextView> { /// <inheritdoc/> protected override void StartListening(TextView source) { source.VisualLinesChanged += DeliverEvent; } /// <inheritdoc/> protected override void StopListening(TextView source) { source.VisualLinesChanged -= DeliverEvent; } } /// <summary> /// Weak event manager for the <see cref="TextView.ScrollOffsetChanged"/> event. /// </summary> [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")] public sealed class ScrollOffsetChanged : WeakEventManagerBase<ScrollOffsetChanged, TextView> { /// <inheritdoc/> protected override void StartListening(TextView source) { source.ScrollOffsetChanged += DeliverEvent; } /// <inheritdoc/> protected override void StopListening(TextView source) { source.ScrollOffsetChanged -= DeliverEvent; } } } }