Skip to content

Commit d7fc930

Browse files
committed
Remove trailing whitespace.
1 parent 30ec28b commit d7fc930

File tree

218 files changed

+1443
-1443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+1443
-1443
lines changed

DotNet.BackEnd.CCI/CciBackEnd.n

Lines changed: 66 additions & 66 deletions
Large diffs are not rendered by default.

DotNet.BackEnd.CCI/LazyAttributeList.n

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Nitra.BackEnd.Cci
2323
{
2424
_cciAttributeHost : IReference;
2525
_cciBackEnd : CciBackEnd;
26-
26+
2727
protected override OnLoad() : void
2828
{
2929
def count = _cciAttributeHost.Attributes.Count();

DotNet.BackEnd.CCI/LazyList.n

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ namespace Nitra.BackEnd.Cci
1515
public abstract class LazyList[T] : IReadOnlyList[T], IList[T]
1616
{
1717
protected mutable _list : ImmutableArray[T];
18-
18+
1919
protected abstract OnLoad() : void;
20-
20+
2121
Load() : void
2222
{
2323
when (_list == null)
2424
OnLoad();
2525
}
26-
26+
2727
public Item[index : int] : T
2828
{
2929
get
@@ -46,13 +46,13 @@ namespace Nitra.BackEnd.Cci
4646
_list.Length
4747
}
4848
}
49-
49+
5050
public GetEnumerator() : ImmutableArray[T].Enumerator
5151
{
5252
Load();
5353
_list.GetEnumerator()
5454
}
55-
55+
5656
GetEnumeratorImpl() : IEnumerator[T]
5757
implements Seq[T].GetEnumerator
5858
{
@@ -72,51 +72,51 @@ namespace Nitra.BackEnd.Cci
7272
Load();
7373
_list.CopyTo(ary, arrayIndex)
7474
}
75-
75+
7676
public IndexOf(item : T) : int
7777
{
7878
Load();
7979
_list.IndexOf(item)
8080
}
81-
81+
8282
Contains(item : T) : bool
8383
implements System.Collections.Generic.ICollection[T].Contains
8484
{
8585
Load();
8686
_list.Contains(item)
8787
}
88-
88+
8989
Add(item : T) : void
9090
implements System.Collections.Generic.ICollection[T].Add
9191
{
9292
_ = item;
9393
throw NotSupportedException()
9494
}
95-
95+
9696
Clear() : void
9797
implements System.Collections.Generic.ICollection[T].Clear
9898
{ throw NotSupportedException() }
99-
99+
100100
IsReadOnly : bool
101101
implements System.Collections.Generic.ICollection[T].IsReadOnly
102102
{
103103
get { true }
104104
}
105-
105+
106106
Remove(item : T) : bool
107107
implements System.Collections.Generic.ICollection[T].Remove
108108
{
109109
_ = item;
110110
throw NotSupportedException()
111111
}
112-
112+
113113
Insert(index : int, item : T) : void
114114
implements System.Collections.Generic.IList[T].Insert
115115
{
116116
_ = index; _ = item;
117117
throw NotSupportedException()
118118
}
119-
119+
120120
RemoveAt(index : int) : void
121121
implements System.Collections.Generic.IList[T].RemoveAt
122122
{

DotNet.BackEnd.CCI/Properties/AssemblyInfo.n

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using System.Runtime.InteropServices;
55
[assembly: Nemerle.Macro.Resource(@"Properties/Resources.resx")]
66
[assembly: Nemerle.Macro.Settings(@"Properties/Settings.settings")]
77

8-
// General Information about an assembly is controlled through the following
8+
// General Information about an assembly is controlled through the following
99
// set of attributes. Change these attribute values to modify the information
1010
// associated with an assembly.
1111
[assembly: AssemblyTitle("DotNet.BackEnd.CCI")]
@@ -17,8 +17,8 @@ using System.Runtime.InteropServices;
1717
[assembly: AssemblyTrademark("")]
1818
[assembly: AssemblyCulture("")]
1919

20-
// Setting ComVisible to false makes the types in this assembly not visible
21-
// to COM components. If you need to access a type in this assembly from
20+
// Setting ComVisible to false makes the types in this assembly not visible
21+
// to COM components. If you need to access a type in this assembly from
2222
// COM, set the ComVisible attribute to true on that type.
2323
[assembly: ComVisible(false)]
2424

@@ -28,7 +28,7 @@ using System.Runtime.InteropServices;
2828
// Version information for an assembly consists of the following four values:
2929
//
3030
// Major Version
31-
// Minor Version
31+
// Minor Version
3232
// Build Number
3333
// Revision
3434
//

DotNet.BackEnd.CCI/TypeMemberScope.n

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ namespace Nitra.BackEnd.Cci
2121
{
2222
_cciBackEnd : CciBackEnd;
2323
mutable _isLoaded : bool;
24-
24+
2525
public this(owner : ContainerSymbol, name : string, cciBackEnd : CciBackEnd)
2626
{
2727
base(owner, name);
2828
_cciBackEnd = cciBackEnd;
2929
}
30-
30+
3131
Load() : void
3232
{
3333
_isLoaded = true;
@@ -36,44 +36,44 @@ namespace Nitra.BackEnd.Cci
3636
def type = (owner.FirstDeclarationOrDefault :> IExternalTypeDeclaration).Type;
3737
def props = List();
3838
def methods = Dictionary();
39-
39+
4040
def getTypeScope(type : TypeSymbol) {
4141
| x is TopConstructedTypeSymbol => x.TypeInfo.Scope
4242
| _ => type.Scope
4343
}
44-
44+
4545
foreach (m in type.Members)
4646
{
4747
| _ is ITypeDefinition => ()
48-
| member =>
48+
| member =>
4949
def symbol = _cciBackEnd.LoadTypeMembers(member, owner, context);
50-
51-
match (member, symbol)
50+
51+
match (member, symbol)
5252
{
53-
| (member is IPropertyDefinition, propSymbol is Member.PropertySymbol) =>
53+
| (member is IPropertyDefinition, propSymbol is Member.PropertySymbol) =>
5454
// Remember property for getter/setter resolution
55-
props.Add((member, propSymbol));
56-
55+
props.Add((member, propSymbol));
56+
5757
// Link Type scope to property Scope
5858
propSymbol.Scope = getTypeScope(propSymbol.Type);
5959
| (_ is IFieldDefinition, fieldSymbol is Member.FieldSymbol) =>
6060
// Link Type scope to field Scope
6161
fieldSymbol.Scope = getTypeScope(fieldSymbol.Type);
62-
| (_, symbol is Member.MethodSymbol) =>
62+
| (_, symbol is Member.MethodSymbol) =>
6363
// Save methods for getter/setter resolution
6464
// don't care about overloads, since this is for properties
65-
methods[member.Name.UniqueKey] = symbol;
65+
methods[member.Name.UniqueKey] = symbol;
6666
symbol.Scope = getTypeScope(symbol.ReturnType);
6767
| _ => ()
6868
}
6969
}
70-
70+
7171
foreach((propDef, propSym) in props) {
7272
propSym.Getter = if (propDef.Getter != null) Some(methods[propDef.Getter.Name.UniqueKey]) else None();
7373
propSym.Setter = if (propDef.Setter != null) Some(methods[propDef.Setter.Name.UniqueKey]) else None();
7474
}
7575
}
76-
76+
7777
public override AllSymbols : Seq[DeclarationSymbol]
7878
{
7979
get
@@ -82,7 +82,7 @@ namespace Nitra.BackEnd.Cci
8282
base.AllSymbols
8383
}
8484
}
85-
85+
8686
public override Symbols : Hashtable[int, list[DeclarationSymbol]].ValueCollection
8787
{
8888
get
@@ -97,19 +97,19 @@ namespace Nitra.BackEnd.Cci
9797
unless (_isLoaded) Load();
9898
base.Define(declaration, context, name)
9999
}
100-
100+
101101
public override Bind[TSymbol](isMatch : Predicate[TSymbol]) : BindResult[TSymbol]
102102
{
103103
unless (_isLoaded) Load();
104104
base.Bind(isMatch)
105105
}
106-
106+
107107
public override Bind[TSymbol](reference : Reference) : BindResult[TSymbol]
108108
{
109109
unless (_isLoaded) Load();
110110
base.Bind(reference)
111111
}
112-
112+
113113
public override ToDot(nodeToIdMap : Dictionary[object, int], nodes : List[string], _edges : List[string]) : void
114114
{
115115
unless (_isLoaded) Load();
@@ -120,7 +120,7 @@ namespace Nitra.BackEnd.Cci
120120
{
121121
assert(false)
122122
}
123-
123+
124124
public static Deserialize(_reader : BinaryReader, _metadataReader : MetadataReader) : this
125125
{
126126
assert(false, "TypeMemberScope must be used only in backend")

Grammars/Bramaglot/Gherkin.nitra

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ syntax module GherkinSyntax
1313

1414
keyword regex ['A'..'Z', 'a'..'z']+ rule S;
1515

16-
token Content = sm Str=(!NewLineCharacter Any)* // parse everything till end of line (and including)
16+
token Content = sm Str=(!NewLineCharacter Any)* // parse everything till end of line (and including)
1717
{
1818
Value() : string = GetText(Str);
1919
}
@@ -24,7 +24,7 @@ syntax module GherkinSyntax
2424
syntax AsA = "As" sm "a" Content nl { Value() : string = Content.Value(); }
2525
syntax IWantTo = "I" sm "want" sm "to" Content nl { Value() : string = Content.Value(); }
2626
syntax SoThat = "So" sm "that" Content nl { Value() : string = Content.Value(); }
27-
27+
2828
Value() : B.Feature = B.Feature(Content.Value(), AsA.Value(), IWantTo.Value(), SoThat.Value(), Scenarios.Select(s => s.Value()));
2929
}
3030

Grammars/CSharp/CSharp.Grammar/CSharp/AST/CompilationUnit/CompilationUnit.n

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace CSharp
5151
def symbolRef = bindType(systemNs.Scope, name);
5252
unless (symbolRef.IsSymbolEvaluated)
5353
return;
54-
54+
5555
def symbol = symbolRef.Symbol;
5656
def decl = symbol.FirstDeclarationOrDefault :> IExternalTopTypeDeclaration;
5757
def aliasDecl = ExternalTopTypeDeclaration.[TypeAliasSymbol](ND.Name(Location.Default, aliasName), decl.Type);
@@ -71,7 +71,7 @@ namespace CSharp
7171
when (systemNsRef.IsSymbolEvaluated)
7272
{
7373
def systemNs = systemNsRef.Symbol;
74-
74+
7575
defineAlias(context, systemNs, rootNamespace, "Object", "object");
7676
defineAlias(context, systemNs, rootNamespace, "Void", "void");
7777
defineAlias(context, systemNs, rootNamespace, "String", "string");
@@ -92,7 +92,7 @@ namespace CSharp
9292

9393
(backEnd, context, rootNamespace)
9494
}
95-
95+
9696
public RefreshProject(cancellationToken : CancellationToken, files : ImmutableArray[FileEvalPropertiesData], data : object) : void
9797
{
9898
def (_backEnd, context, rootNamespace) = (data :> CciBackEnd * DependentPropertyEvalContext * NamespaceSymbol);
@@ -149,17 +149,17 @@ namespace CSharp
149149

150150
ValueOption.None()
151151
}
152-
152+
153153
foreach (symbols in rootNamespace.MemberTable.Symbols)
154154
{
155155
def result = findSymbol(symbols);
156156
when (result.IsSome)
157157
return result;
158158
}
159-
159+
160160
ValueOption.None()
161161
}
162-
162+
163163
public DeconstructType(symbol : DeclarationSymbol, type : out TypeSymbol, typeArgs : out ImmutableArray[TypeSymbol]) : bool
164164
{
165165
match (symbol)

Grammars/CSharp/CSharp.Grammar/CSharp/AST/IntegerLiteralValue.n

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Nitra
1313
public struct IntegerLiteralValue : ILocated
1414
{
1515
public Location : Location { get; }
16-
16+
1717
public Value : ulong { get; }
1818
public IsUnsigned : bool { get; }
1919
public IsLong : bool { get; }

Grammars/CSharp/CSharp.Grammar/CSharp/AST/Mapping.nitra

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace CSharp
1515
map syntax Types.TypeParameter -> TypeParameterAlias
1616
{
1717
Name -> Name;
18-
Variance =
18+
Variance =
1919
if (VarianceAnnotationOpt.HasValue)
2020
ParsedValue(VarianceAnnotationOpt.Value.Annotation, if (VarianceAnnotationOpt.Value.Annotation.Length == 2) Variance.Covariant else Variance.Contravariant)
2121
else ParsedValue(VarianceAnnotationOpt.Span, Variance.None);
@@ -571,7 +571,7 @@ namespace CSharp
571571
| GenericType -> Generic { QualifiedReferenceParts -> QualifiedName; TypeArgs.Item1 -> Arguments; }
572572
| OpenType -> Open { QualifiedReferenceParts -> QualifiedName; Rank = ParsedValue(RankSeparators.Span, RankSeparators.Count); }
573573
}
574-
574+
575575

576576
//map syntax CsIdentifiers.QualifiedIdentifier -> QualifiedReference
577577
//{

0 commit comments

Comments
 (0)