@@ -85,7 +85,7 @@ public virtual Absy Clone()
8585 {
8686 Contract . Ensures ( Contract . Result < Absy > ( ) != null ) ;
8787 Absy /*!*/
88- result = cce . NonNull ( ( Absy /*!*/ ) this . MemberwiseClone ( ) ) ;
88+ result = Cce . NonNull ( ( Absy /*!*/ ) this . MemberwiseClone ( ) ) ;
8989 result . UniqueId = System . Threading . Interlocked . Increment ( ref CurrentAbsyNodeId ) ; // BUGBUG??
9090
9191 if ( InternalNumberedMetadata != null )
@@ -697,7 +697,7 @@ public NamedDeclaration(IToken tok, string name)
697697 [ Pure ]
698698 public override string ToString ( )
699699 {
700- return cce . NonNull ( Name ) ;
700+ return Cce . NonNull ( Name ) ;
701701 }
702702 }
703703
@@ -1061,7 +1061,7 @@ public override void Typecheck(TypecheckingContext tc)
10611061
10621062 public static void ResolveTypeSynonyms ( List < TypeSynonymDecl /*!*/ > /*!*/ synonymDecls , ResolutionContext /*!*/ rc )
10631063 {
1064- Contract . Requires ( cce . NonNullElements ( synonymDecls ) ) ;
1064+ Contract . Requires ( Cce . NonNullElements ( synonymDecls ) ) ;
10651065 Contract . Requires ( rc != null ) ;
10661066 // then discover all dependencies between type synonyms
10671067 IDictionary < TypeSynonymDecl /*!*/ , List < TypeSynonymDecl /*!*/ > /*!*/ > /*!*/
@@ -1129,7 +1129,7 @@ private static void FindDependencies(Type /*!*/ type, List<TypeSynonymDecl /*!*/
11291129 ResolutionContext /*!*/ rc )
11301130 {
11311131 Contract . Requires ( type != null ) ;
1132- Contract . Requires ( cce . NonNullElements ( deps ) ) ;
1132+ Contract . Requires ( Cce . NonNullElements ( deps ) ) ;
11331133 Contract . Requires ( rc != null ) ;
11341134 if ( type . IsVariable || type . IsBasic )
11351135 {
@@ -1331,7 +1331,7 @@ public int Compare(object a, object b)
13311331 throw new ArgumentException ( "VariableComparer works only on objects of type Variable" ) ;
13321332 }
13331333
1334- return cce . NonNull ( A . Name ) . CompareTo ( B . Name ) ;
1334+ return Cce . NonNull ( A . Name ) . CompareTo ( B . Name ) ;
13351335 }
13361336 }
13371337
@@ -1674,12 +1674,12 @@ public DeclWithFormals(IToken tok, string name, List<TypeVariable> typeParams,
16741674 }
16751675
16761676 protected DeclWithFormals ( DeclWithFormals that )
1677- : base ( that . tok , cce . NonNull ( that . Name ) )
1677+ : base ( that . tok , Cce . NonNull ( that . Name ) )
16781678 {
16791679 Contract . Requires ( that != null ) ;
16801680 this . TypeParameters = that . TypeParameters ;
1681- this . inParams = cce . NonNull ( that . InParams ) ;
1682- this . outParams = cce . NonNull ( that . OutParams ) ;
1681+ this . inParams = Cce . NonNull ( that . InParams ) ;
1682+ this . outParams = Cce . NonNull ( that . OutParams ) ;
16831683 }
16841684
16851685 public byte [ ] MD5Checksum_ ;
@@ -1871,7 +1871,7 @@ protected void EmitSignature(TokenTextWriter stream, bool shortRet)
18711871 {
18721872 Contract . Assert ( OutParams . Count == 1 ) ;
18731873 stream . Write ( " : " ) ;
1874- cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type . Emit ( stream ) ;
1874+ Cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type . Emit ( stream ) ;
18751875 }
18761876 else if ( OutParams . Count > 0 )
18771877 {
@@ -2172,11 +2172,11 @@ public override void Typecheck(TypecheckingContext tc)
21722172 {
21732173 Contract . Assert ( DefinitionBody == null ) ;
21742174 Body . Typecheck ( tc ) ;
2175- if ( ! cce . NonNull ( Body . Type ) . Unify ( cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) )
2175+ if ( ! Cce . NonNull ( Body . Type ) . Unify ( Cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) )
21762176 {
21772177 tc . Error ( Body ,
21782178 "function body with invalid type: {0} (expected: {1})" ,
2179- Body . Type , cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) ;
2179+ Body . Type , Cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) ;
21802180 }
21812181 }
21822182 else if ( DefinitionBody != null )
@@ -2185,11 +2185,11 @@ public override void Typecheck(TypecheckingContext tc)
21852185
21862186 // We are matching the type of the function body with output param, and not the type
21872187 // of DefinitionBody, which is always going to be bool (since it is of the form func_call == func_body)
2188- if ( ! cce . NonNull ( DefinitionBody . Args [ 1 ] . Type ) . Unify ( cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) )
2188+ if ( ! Cce . NonNull ( DefinitionBody . Args [ 1 ] . Type ) . Unify ( Cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) )
21892189 {
21902190 tc . Error ( DefinitionBody . Args [ 1 ] ,
21912191 "function body with invalid type: {0} (expected: {1})" ,
2192- DefinitionBody . Args [ 1 ] . Type , cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) ;
2192+ DefinitionBody . Args [ 1 ] . Type , Cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) ;
21932193 }
21942194 }
21952195 }
@@ -3630,7 +3630,7 @@ public static class Emitter
36303630 public static void Emit ( this List < Declaration /*!*/ > /*!*/ decls , TokenTextWriter stream )
36313631 {
36323632 Contract . Requires ( stream != null ) ;
3633- Contract . Requires ( cce . NonNullElements ( decls ) ) ;
3633+ Contract . Requires ( Cce . NonNullElements ( decls ) ) ;
36343634 bool first = true ;
36353635 foreach ( Declaration d in decls )
36363636 {
@@ -3978,7 +3978,7 @@ public static RE Transform(Block b)
39783978 Contract . Assume ( g . LabelTargets != null ) ;
39793979 if ( g . LabelTargets . Count == 1 )
39803980 {
3981- return new Sequential ( new AtomicRE ( b ) , Transform ( cce . NonNull ( g . LabelTargets [ 0 ] ) ) ) ;
3981+ return new Sequential ( new AtomicRE ( b ) , Transform ( Cce . NonNull ( g . LabelTargets [ 0 ] ) ) ) ;
39823982 }
39833983 else
39843984 {
@@ -3997,7 +3997,7 @@ public static RE Transform(Block b)
39973997 else
39983998 {
39993999 Contract . Assume ( false ) ;
4000- throw new cce . UnreachableException ( ) ;
4000+ throw new Cce . UnreachableException ( ) ;
40014001 }
40024002 }
40034003 }
0 commit comments