@@ -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 )
@@ -762,7 +762,7 @@ public NamedDeclaration(IToken tok, string name)
762762 [ Pure ]
763763 public override string ToString ( )
764764 {
765- return cce . NonNull ( Name ) ;
765+ return Cce . NonNull ( Name ) ;
766766 }
767767
768768 public virtual bool MayRename => true ;
@@ -1128,7 +1128,7 @@ public override void Typecheck(TypecheckingContext tc)
11281128
11291129 public static void ResolveTypeSynonyms ( List < TypeSynonymDecl /*!*/ > /*!*/ synonymDecls , ResolutionContext /*!*/ rc )
11301130 {
1131- Contract . Requires ( cce . NonNullElements ( synonymDecls ) ) ;
1131+ Contract . Requires ( Cce . NonNullElements ( synonymDecls ) ) ;
11321132 Contract . Requires ( rc != null ) ;
11331133 // then discover all dependencies between type synonyms
11341134 IDictionary < TypeSynonymDecl /*!*/ , List < TypeSynonymDecl /*!*/ > /*!*/ > /*!*/
@@ -1196,7 +1196,7 @@ private static void FindDependencies(Type /*!*/ type, List<TypeSynonymDecl /*!*/
11961196 ResolutionContext /*!*/ rc )
11971197 {
11981198 Contract . Requires ( type != null ) ;
1199- Contract . Requires ( cce . NonNullElements ( deps ) ) ;
1199+ Contract . Requires ( Cce . NonNullElements ( deps ) ) ;
12001200 Contract . Requires ( rc != null ) ;
12011201 if ( type . IsVariable || type . IsBasic )
12021202 {
@@ -1398,7 +1398,7 @@ public int Compare(object a, object b)
13981398 throw new ArgumentException ( "VariableComparer works only on objects of type Variable" ) ;
13991399 }
14001400
1401- return cce . NonNull ( A . Name ) . CompareTo ( B . Name ) ;
1401+ return Cce . NonNull ( A . Name ) . CompareTo ( B . Name ) ;
14021402 }
14031403 }
14041404
@@ -1741,12 +1741,12 @@ public DeclWithFormals(IToken tok, string name, List<TypeVariable> typeParams,
17411741 }
17421742
17431743 protected DeclWithFormals ( DeclWithFormals that )
1744- : base ( that . tok , cce . NonNull ( that . Name ) )
1744+ : base ( that . tok , Cce . NonNull ( that . Name ) )
17451745 {
17461746 Contract . Requires ( that != null ) ;
17471747 this . TypeParameters = that . TypeParameters ;
1748- this . inParams = cce . NonNull ( that . InParams ) ;
1749- this . outParams = cce . NonNull ( that . OutParams ) ;
1748+ this . inParams = Cce . NonNull ( that . InParams ) ;
1749+ this . outParams = Cce . NonNull ( that . OutParams ) ;
17501750 }
17511751
17521752 public byte [ ] MD5Checksum_ ;
@@ -1938,7 +1938,7 @@ protected void EmitSignature(TokenTextWriter stream, bool shortRet)
19381938 {
19391939 Contract . Assert ( OutParams . Count == 1 ) ;
19401940 stream . Write ( " : " ) ;
1941- cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type . Emit ( stream ) ;
1941+ Cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type . Emit ( stream ) ;
19421942 }
19431943 else if ( OutParams . Count > 0 )
19441944 {
@@ -2240,11 +2240,11 @@ public override void Typecheck(TypecheckingContext tc)
22402240 {
22412241 Contract . Assert ( DefinitionBody == null ) ;
22422242 Body . Typecheck ( tc ) ;
2243- if ( ! cce . NonNull ( Body . Type ) . Unify ( cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) )
2243+ if ( ! Cce . NonNull ( Body . Type ) . Unify ( Cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) )
22442244 {
22452245 tc . Error ( Body ,
22462246 "function body with invalid type: {0} (expected: {1})" ,
2247- Body . Type , cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) ;
2247+ Body . Type , Cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) ;
22482248 }
22492249 }
22502250 else if ( DefinitionBody != null )
@@ -2253,11 +2253,11 @@ public override void Typecheck(TypecheckingContext tc)
22532253
22542254 // We are matching the type of the function body with output param, and not the type
22552255 // of DefinitionBody, which is always going to be bool (since it is of the form func_call == func_body)
2256- if ( ! cce . NonNull ( DefinitionBody . Args [ 1 ] . Type ) . Unify ( cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) )
2256+ if ( ! Cce . NonNull ( DefinitionBody . Args [ 1 ] . Type ) . Unify ( Cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) )
22572257 {
22582258 tc . Error ( DefinitionBody . Args [ 1 ] ,
22592259 "function body with invalid type: {0} (expected: {1})" ,
2260- DefinitionBody . Args [ 1 ] . Type , cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) ;
2260+ DefinitionBody . Args [ 1 ] . Type , Cce . NonNull ( OutParams [ 0 ] ) . TypedIdent . Type ) ;
22612261 }
22622262 }
22632263 }
@@ -3692,7 +3692,7 @@ public static class Emitter
36923692 public static void Emit ( this List < Declaration /*!*/ > /*!*/ decls , TokenTextWriter stream )
36933693 {
36943694 Contract . Requires ( stream != null ) ;
3695- Contract . Requires ( cce . NonNullElements ( decls ) ) ;
3695+ Contract . Requires ( Cce . NonNullElements ( decls ) ) ;
36963696 bool first = true ;
36973697 foreach ( Declaration d in decls )
36983698 {
@@ -4041,7 +4041,7 @@ public static RE Transform(Block b)
40414041 Contract . Assume ( g . labelTargets != null ) ;
40424042 if ( g . labelTargets . Count == 1 )
40434043 {
4044- return new Sequential ( new AtomicRE ( b ) , Transform ( cce . NonNull ( g . labelTargets [ 0 ] ) ) ) ;
4044+ return new Sequential ( new AtomicRE ( b ) , Transform ( Cce . NonNull ( g . labelTargets [ 0 ] ) ) ) ;
40454045 }
40464046 else
40474047 {
@@ -4060,7 +4060,7 @@ public static RE Transform(Block b)
40604060 else
40614061 {
40624062 Contract . Assume ( false ) ;
4063- throw new cce . UnreachableException ( ) ;
4063+ throw new Cce . UnreachableException ( ) ;
40644064 }
40654065 }
40664066 }
0 commit comments