Skip to content

Commit

Permalink
fix fail on empty main-method by catching nullreference-exception, re…
Browse files Browse the repository at this point in the history
…format license-comments
  • Loading branch information
linderd committed Feb 20, 2024
1 parent 03aca5d commit 091e61d
Show file tree
Hide file tree
Showing 82 changed files with 101 additions and 104 deletions.
2 changes: 1 addition & 1 deletion QuIDE/ViewModels/MainModels/QuantumModel/ComputerModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
2 changes: 1 addition & 1 deletion QuIDE/ViewModels/MainModels/QuantumModel/Gates/CNotGate.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
2 changes: 1 addition & 1 deletion QuIDE/ViewModels/MainModels/QuantumModel/Gates/Gate.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
2 changes: 1 addition & 1 deletion QuIDE/ViewModels/MainModels/QuantumModel/OutputState.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
10 changes: 1 addition & 9 deletions QuIDE/ViewModels/MainModels/QuantumModel/OutputViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand All @@ -18,31 +18,23 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#region

using System;
using System.Collections.Generic;
using System.Numerics;
using Avalonia.Interactivity;
using Quantum;

#endregion

namespace QuIDE.ViewModels.MainModels.QuantumModel
{
public class OutputViewModel
{
#region Events

public event EventHandler OutputChanged;

private void OnOutputChanged()
{
OutputChanged?.Invoke(this, new RoutedEventArgs());
}

#endregion // Events


#region Fields

Expand Down
2 changes: 1 addition & 1 deletion QuIDE/ViewModels/MainModels/QuantumModel/QubitModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
2 changes: 1 addition & 1 deletion QuIDE/ViewModels/MainModels/QuantumModel/RegisterModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
2 changes: 1 addition & 1 deletion QuIDE/ViewModels/MainModels/QuantumModel/Selection.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
2 changes: 1 addition & 1 deletion QuIDE/ViewModels/MainModels/QuantumModel/StepModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
2 changes: 1 addition & 1 deletion QuIDE/ViewModels/MainModels/QuantumParser/IRegister.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
2 changes: 1 addition & 1 deletion QuIDE/ViewModels/MainModels/QuantumParser/MethodCode.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.
QuIDE - The Quantum IDE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
This file is part of QuIDE.

QuIDE - The Quantum IDE
Expand Down
Loading

0 comments on commit 091e61d

Please sign in to comment.